fromPkcs8

fun fromPkcs8(pkcs8Bytes: ByteArray, publicKey: MlDsaPublicKey? = null): MlDsaPrivateKey

Decodes a MlDsaPrivateKey from PKCS#8 bytes.

Parameters

pkcs8Bytes

the PKCS#8 encoded bytes.

publicKey

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