fromPkcs8

fun fromPkcs8(pkcs8Bytes: ByteArray, publicKey: MlKemPublicKey? = null): MlKemPrivateKey

Decodes a MlKemPrivateKey from PKCS#8 bytes.

Parameters

pkcs8Bytes

the PKCS#8 encoded bytes.

publicKey

the public key if known, or null if to be reconstructed.