Skip to main content

Module ml_dsa_bridge

Module ml_dsa_bridge 

Source
Expand description

Bridge between ml-dsa (signature v3) and x509-ocsp (signature v2).

produce_bundle requires Signer<Sig> + DynSignatureAlgorithmIdentifier from signature v2 / spki v0.7. The ml-dsa crate implements signature v3. This module wraps the v3 types to satisfy v2 trait bounds.

Structs§

MlDsaSignatureBytes
Wrapper around raw signature bytes implementing v2 SignatureBitStringEncoding.
MlDsaSigner
Wrapper around ml-dsa SigningKey implementing signature v2 traits.

Enums§

MlDsaSignerVariant
Signer variant that dispatches to the correct ML-DSA parameter set. Returned by load_ml_dsa_signer_from_pkcs8_der when the parameter set is auto-detected from the PKCS#8 AlgorithmIdentifier OID.

Constants§

ML_DSA_44_OID
ML_DSA_65_OID
ML_DSA_87_OID

Functions§

load_ml_dsa_signer_from_pkcs8_der
Load an ML-DSA signer from PKCS#8 DER bytes, auto-detecting the parameter set from the AlgorithmIdentifier OID (RFC 9881).
ml_dsa_44_signer
ml_dsa_65_signer
ml_dsa_87_signer
ml_dsa_signature_size