Companion

object Companion

Functions

Link copied to clipboard

Decodes a MlDsaPrivateKey from a COSE Key.

Link copied to clipboard

Decodes a MlDsaPrivateKey from a CBOR data item.

Link copied to clipboard
fun fromJwk(jwk: JsonObject): MlDsaPrivateKey

Decodes a MlDsaPrivateKey from a JSON Web Key.

Link copied to clipboard
fun fromPem(pemEncoding: String, publicKey: MlDsaPublicKey? = null): MlDsaPrivateKey

Decodes a MlDsaPrivateKey from a PEM encoded string.

Link copied to clipboard
fun fromPkcs8(pkcs8Bytes: ByteArray, publicKey: MlDsaPublicKey? = null): MlDsaPrivateKey

Decodes a MlDsaPrivateKey from PKCS#8 bytes.

Link copied to clipboard
fun fromPrivateKeyInfo(pkcs8Bytes: ByteArray, publicKey: MlDsaPublicKey? = null): MlDsaPrivateKey

Decodes a MlDsaPrivateKey from DER-encoded PrivateKeyInfo bytes.