| [ Web Proxy ] |
| Viewing: https://developer.mozilla.org/en-US/docs/Web/API/EcKeyGenParams | [Back] [Original] |
Get to know MDN better
The 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.
nameA string. This should be set to ECDSA or ECDH, depending on the algorithm you want to use.
namedCurveA string representing the name of the elliptic curve to use. This may be any of the following names for NIST-approved curves:
P-256P-384P-521See the examples for SubtleCrypto.generateKey().
| Specification |
|---|
| Web Cryptography Level 2 # dfn-EcKeyGenParams |
Browsers that support the "ECDH" or "ECDSA" algorithms for the SubtleCrypto.generateKey() method will support this type.
This page was last modified on Jun 23, 2025 by MDN contributors.
EcKeyGenParamsYour blueprint for a better internet.
Portions of this content are 19982026 by individual mozilla.org contributors. Content available under a Creative Commons license.
| Web Proxy Viewer | New URL | Original Page |