Skip to main content

EcAlgorithm

EC algorithm provider

Implements

Constructors

Constructor

new EcAlgorithm(): EcAlgorithm

Returns

EcAlgorithm

Properties

SECP256K1

static SECP256K1: string = "1.3.132.0.10"

Methods

toAsnAlgorithm()

toAsnAlgorithm(alg): any

Converts WebCrypto algorithm to ASN.1 algorithm

Parameters

alg

WebCrypto algorithm

HashedAlgorithm | EcKeyGenParams

Returns

any

ASN.1 algorithm or null

Implementation of

IAlgorithm.toAsnAlgorithm


toWebAlgorithm()

toWebAlgorithm(alg): HashedAlgorithm | EcKeyGenParams | null

Converts ASN.1 algorithm to WebCrypto algorithm

Parameters

alg

AlgorithmIdentifier

ASN.1 algorithm

Returns

HashedAlgorithm | EcKeyGenParams | null

WebCrypto algorithm or null

Implementation of

IAlgorithm.toWebAlgorithm