Enums§
- Mldsa
KeyFormat - Formats that can be used to represent ML-DSA keys: PKCS#8 for private keys,
and
SubjectPublicKeyInfofor public keys. - Mldsa
Parameter Set - ML-DSA parameter sets.
Traits§
- Mldsa
Pkcs8 Params - ML-DSA parameter sets with PKCS#8 / SubjectPublicKeyInfo support.
Functions§
- load_
mldsa_ key - Load an ML-DSA public or private key from a PEM or DER file, returning the public key and, for a private key file, the private key.
- load_
mldsa_ private_ key - Load an ML-DSA private key from a PEM or DER file.
- load_
mldsa_ public_ key - Load an ML-DSA public key from a PEM or DER file.
- mldsa_
key_ from_ der - 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.
- mldsa_
parameter_ set_ from_ der - Returns the parameter set of the DER encoding of an ML-DSA public or private key.
- mldsa_
private_ key_ from_ bytes - Load an ML-DSA private key from its PEM or DER encoded PKCS#8 bytes.
- mldsa_
public_ key_ from_ bytes - Load an ML-DSA public key from its PEM or DER encoded SubjectPublicKeyInfo bytes.
- mldsa_
sign - Signs
msgunder thecontextstring (pure mode). - mldsa_
verify - Verifies the encoded
signatureofmsgunder thecontextstring (pure mode). - read_
mldsa_ key_ file - Reads a PEM or DER encoded key file into its DER encoding.
- save_
mldsa_ private_ key - Write an ML-DSA private key (seed form) to a file in the given format.
- save_
mldsa_ public_ key - Write an ML-DSA public key to a file in the given format.