Skip to main content

AlgorithmProvider

Constructors

new AlgorithmProvider()

new AlgorithmProvider(): AlgorithmProvider

Returns

AlgorithmProvider

Methods

getAlgorithms()

getAlgorithms(): IAlgorithm[]

Returns all registered algorithm providers

Returns

IAlgorithm[]


toAsnAlgorithm()

toAsnAlgorithm(alg): AlgorithmIdentifier

Converts WebCrypto algorithm to ASN.1 algorithm

Parameters

alg: Algorithm

WebCrypto algorithm

Returns

AlgorithmIdentifier

ASN.1 algorithm

Throws

Error whenever cannot convert an algorithm


toWebAlgorithm()

toWebAlgorithm(alg): Algorithm

ConvertsASN.1 algorithm to WebCrypto algorithm

Parameters

alg: AlgorithmIdentifier

ASN.1 algorithm

Returns

Algorithm

algorithm