bytesToPublicKey

open fun bytesToPublicKey(bytes: Array<Byte>): PublicKey

Convert bytes to an RSA public key.

Return

The RSA public 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.