fromPkcs1

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

Parses an RSA private key from a DER-encoded PKCS#1 RSAPrivateKey sequence.

Return

the parsed RsaPrivateKey.

Parameters

derEncoding

the DER-encoded bytes.

publicKey

optional known RsaPublicKey.