EcAlgorithm
EC algorithm provider
Implements
Constructors
new EcAlgorithm()
new EcAlgorithm():
EcAlgorithm
Returns
Properties
SECP256K1
static
SECP256K1:string
="1.3.132.0.10"
Methods
toAsnAlgorithm()
toAsnAlgorithm(
alg
):null
|AlgorithmIdentifier
Converts WebCrypto algorithm to ASN.1 algorithm
Parameters
• alg: HashedAlgorithm
| EcKeyGenParams
WebCrypto algorithm
Returns
null
| AlgorithmIdentifier
ASN.1 algorithm or null
Implementation of
toWebAlgorithm()
toWebAlgorithm(
alg
):null
|HashedAlgorithm
|EcKeyGenParams
Converts ASN.1 algorithm to WebCrypto algorithm
Parameters
• alg: AlgorithmIdentifier
ASN.1 algorithm
Returns
null
| HashedAlgorithm
| EcKeyGenParams
WebCrypto algorithm or null