EcAlgorithm
EC algorithm provider
Implements
Constructors
Constructor
new EcAlgorithm():
EcAlgorithm
Returns
EcAlgorithm
Properties
SECP256K1
staticSECP256K1: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
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