EcKeyGenParams dictionary of the Web Crypto API represents the object that should be passed as the
algorithm parameter into
SubtleCrypto.generateKey(), when generating any elliptic-curve-based key pair: that is, when the algorithm is identified as either of ECDSA or ECDH.
A string. This should be set to
ECDH, depending on the algorithm you want to use.
A string representing the name of the elliptic curve to use. This may be any of the following names for NIST-approved curves:
See the examples for
|Web Cryptography API |
Browsers that support the "ECDH" or "ECDSA" algorithms for the
SubtleCrypto.generateKey() method will support this type.