Skip to main content

EdAlgorithm

ECDH-ES and EdDSA algorithm provider

Implements

Constructors

Constructor

new EdAlgorithm(): EdAlgorithm

Returns

EdAlgorithm

Methods

toAsnAlgorithm()

toAsnAlgorithm(alg): any

Converts WebCrypto algorithm to ASN.1 algorithm

Parameters

alg

EcKeyGenParams

WebCrypto algorithm

Returns

any

ASN.1 algorithm or null

Implementation of

IAlgorithm.toAsnAlgorithm


toWebAlgorithm()

toWebAlgorithm(alg): Algorithm | HashedAlgorithm | EcKeyGenParams | null

Converts ASN.1 algorithm to WebCrypto algorithm

Parameters

alg

AlgorithmIdentifier

ASN.1 algorithm

Returns

Algorithm | HashedAlgorithm | EcKeyGenParams | null

WebCrypto algorithm or null

Implementation of

IAlgorithm.toWebAlgorithm