files/en-us/web/api/eckeyimportparams/index.md
{{ APIRef("Web Crypto API") }}
The EcKeyImportParams dictionary of the Web Crypto API represents the object that should be passed as the algorithm parameter into {{domxref("SubtleCrypto.importKey()")}} or {{domxref("SubtleCrypto.unwrapKey()")}}, 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.importKey()")}}.
{{Specifications}}
Browsers that support the "ECDH" or "ECDSA" algorithms for the {{domxref("SubtleCrypto.importKey()")}} or {{domxref("SubtleCrypto.wrapKey()")}} methods will support this type.