Skip to main content

RsaAlgorithm

RSA algorithm provider

Implements

Constructors

Constructor

new RsaAlgorithm(): RsaAlgorithm

Returns

RsaAlgorithm

Methods

toAsnAlgorithm()

toAsnAlgorithm(alg): any

Converts WebCrypto algorithm to ASN.1 algorithm

Parameters

alg

Algorithm

WebCrypto algorithm

Returns

any

ASN.1 algorithm or null

Implementation of

IAlgorithm.toAsnAlgorithm


toWebAlgorithm()

toWebAlgorithm(alg): Algorithm | HashedAlgorithm | null

Converts ASN.1 algorithm to WebCrypto algorithm

Parameters

alg

AlgorithmIdentifier

ASN.1 algorithm

Returns

Algorithm | HashedAlgorithm | null

WebCrypto algorithm or null

Implementation of

IAlgorithm.toWebAlgorithm


createPssParams()

static createPssParams(hash, saltLength): any

Parameters

hash

unknown

saltLength

number

Returns

any


getHashAlgorithm()

static getHashAlgorithm(alg): any

Parameters

alg

unknown

Returns

any