Skip to main content

AlgorithmProvider

Constructors​

Constructor​

new AlgorithmProvider(): AlgorithmProvider

Returns​

AlgorithmProvider

Methods​

getAlgorithms()​

getAlgorithms(): any

Returns all registered algorithm providers

Returns​

any


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