fromPrivateKeyInfo

fun fromPrivateKeyInfo(derEncoding: ByteArray, publicKey: RsaPublicKey? = null): RsaPrivateKey

Parses an RSA private key from a DER-encoded PKCS#8 PrivateKeyInfo sequence.

Return

the parsed RsaPrivateKey.

Parameters

derEncoding

the DER-encoded bytes.

publicKey

optional known RsaPublicKey.