Function mldsa_key_from_der

Source
pub fn mldsa_key_from_der<P: MldsaPkcs8Params>(
    der: &[u8],
) -> Result<(VerifyingKey<P>, Option<SigningKey<P>>)>
Expand description

Decodes the DER encoding of an ML-DSA public key (SubjectPublicKeyInfo) or private key (PKCS#8), returning the public key and, for a private key, the private key.