Module mldsa

Source

Enums§

MldsaKeyFormat
Formats that can be used to represent ML-DSA keys: PKCS#8 for private keys, and SubjectPublicKeyInfo for public keys.
MldsaParameterSet
ML-DSA parameter sets.

Traits§

MldsaPkcs8Params
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 msg under the context string (pure mode).
mldsa_verify
Verifies the encoded signature of msg under the context string (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.