files/en-us/web/api/eckeygenparams/index.md
{{ APIRef("Web Crypto API") }}
The EcKeyGenParams dictionary of the Web Crypto API represents the object that should be passed as the algorithm parameter into {{domxref("SubtleCrypto.generateKey()")}}, when generating any elliptic-curve-based key pair: that is, when the algorithm is identified as either of ECDSA or ECDH.
name
ECDSA or ECDH, depending on the algorithm you want to use.namedCurve
P-256P-384P-521See the examples for {{domxref("SubtleCrypto.generateKey()")}}.
{{Specifications}}
Browsers that support the "ECDH" or "ECDSA" algorithms for the {{domxref("SubtleCrypto.generateKey()")}} method will support this type.