Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. EcKeyGenParams

EcKeyGenParams

TheEcKeyGenParams dictionary of theWeb Crypto API represents the object that should be passed as thealgorithm parameter intoSubtleCrypto.generateKey(), when generating any elliptic-curve-based key pair: that is, when the algorithm is identified as either ofECDSA orECDH.

Instance properties

name

A string. This should be set toECDSA orECDH, depending on the algorithm you want to use.

namedCurve

A string representing the name of the elliptic curve to use. This may be any of the following names forNIST-approved curves:

  • P-256
  • P-384
  • P-521

Examples

See the examples forSubtleCrypto.generateKey().

Specifications

Specification
Web Cryptography Level 2
# dfn-EcKeyGenParams

Browser compatibility

Browsers that support the "ECDH" or "ECDSA" algorithms for theSubtleCrypto.generateKey() method will support this type.

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp