bytesToPrivateKey

open fun bytesToPrivateKey(bytes: Array<Byte>): PrivateKey

Convert bytes to an RSA private key.

Return

The RSA private Key.

Parameters

bytes

The bytes to convert.

Throws

If the algorithm can't be found on the system.

If the bytes can't be parsed to an RSA key.