Skip to main content

SlhDsaAlgorithm

Provider for the NIST FIPS 205 stateless hash-based digital signature algorithms (SLH-DSA). All 12 parameter sets per FIPS 205 §9. Per FIPS 205 and NIST CSOR the AlgorithmIdentifier carries no parameters (absent, not NULL), matching the Ed25519 convention.

Implements

Constructors

Constructor

new SlhDsaAlgorithm(): SlhDsaAlgorithm

Returns

SlhDsaAlgorithm

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