Skip to main content

MlDsaAlgorithm

Provider for the NIST FIPS 204 module-lattice digital signature algorithms (ML-DSA-44 / -65 / -87). Per FIPS 204 §5 and NIST CSOR the AlgorithmIdentifier carries no parameters (absent, not NULL), matching the Ed25519 convention.

Implements

Constructors

Constructor

new MlDsaAlgorithm(): MlDsaAlgorithm

Returns

MlDsaAlgorithm

Methods

toAsnAlgorithm()

toAsnAlgorithm(alg): any

Converts WebCrypto algorithm to ASN.1 algorithm

Parameters

alg

Algorithm

WebCrypto algorithm

Returns

any

ASN.1 algorithm or null

Implementation of

IAlgorithm.toAsnAlgorithm


toWebAlgorithm()

toWebAlgorithm(alg): Algorithm | null

Converts ASN.1 algorithm to WebCrypto algorithm

Parameters

alg

AlgorithmIdentifier

ASN.1 algorithm

Returns

Algorithm | null

WebCrypto algorithm or null

Implementation of

IAlgorithm.toWebAlgorithm