Structsยง
- Both ๐
- Structure in Rust representing the
bothSEQUENCE used in the following ASN.1 structures, as defined in [RFC 9881 Section 6].
Enumsยง
- MlDsa
Private ๐KeyStructure - Structure in Rust representing all the following three structures as defined in [RFC 9881 Section 6].
Constantsยง
- ID_
ALG_ ๐ML_ DSA_ 44 - Object Identifier (OID) of ML-DSA-44 Section 2 of https://datatracker.ietf.org/doc/html/rfc9881
- ID_
ALG_ ๐ML_ DSA_ 65 - Object Identifier (OID) of ML-DSA-65 Section 2 of https://datatracker.ietf.org/doc/html/rfc9881
- ID_
ALG_ ๐ML_ DSA_ 87 - Object Identifier (OID) of ML-DSA-87 Section 2 of https://datatracker.ietf.org/doc/html/rfc9881
Functionsยง
- convert_
handle_ ๐to_ public_ key - Convert an ML-DSA public key handle to public key bytes. If the handle is not representing a ML-DSA public key, throw an OperationError.
- convert_
handle_ ๐to_ seed_ and_ public_ key - Convert an ML-DSA private key handle to seed bytes and public key bytes. If the handle is not representing a ML-DSA private key, throw an OperationError.
- convert_
public_ ๐key_ to_ handle - Convert public key bytes to an ML-DSA public key handle. If the conversion fails, throw a DataError.
- convert_
seed_ ๐to_ handles - Convert seed bytes to an ML-DSA private key handle and an ML-DSA public key handle. If private key bytes and/or public key bytes are provided, it runs a consistency check against the seed. If the length in bits of seed bytes is not 256, the conversion fails, or the consistency check fails, throw a DataError.
- export_
key ๐ - https://wicg.github.io/webcrypto-modern-algos/#ml-dsa-operations-export-key
- generate_
key ๐ - https://wicg.github.io/webcrypto-modern-algos/#ml-dsa-operations-generate-key
- import_
key ๐ - https://wicg.github.io/webcrypto-modern-algos/#ml-dsa-operations-import-key
- sign ๐
- https://wicg.github.io/webcrypto-modern-algos/#ml-dsa-operations-sign
- verify ๐
- https://wicg.github.io/webcrypto-modern-algos/#ml-dsa-operations-verify