Skip to main content

ShaAlgorithm

SHA algorithm provider

Implements

Constructors

new ShaAlgorithm()

new ShaAlgorithm(): ShaAlgorithm

Returns

ShaAlgorithm

Methods

toAsnAlgorithm()

toAsnAlgorithm(alg): null | AlgorithmIdentifier

Converts WebCrypto algorithm to ASN.1 algorithm

Parameters

alg: Algorithm

WebCrypto algorithm

Returns

null | AlgorithmIdentifier

ASN.1 algorithm or null

Implementation of

IAlgorithm.toAsnAlgorithm


toWebAlgorithm()

toWebAlgorithm(alg): null | Algorithm

Converts ASN.1 algorithm to WebCrypto algorithm

Parameters

alg: AlgorithmIdentifier

ASN.1 algorithm

Returns

null | Algorithm

WebCrypto algorithm or null

Implementation of

IAlgorithm.toWebAlgorithm