EcdsaParams
TheEcdsaParams dictionary of theWeb Crypto API represents the object that should be passed as thealgorithm parameter intoSubtleCrypto.sign() orSubtleCrypto.verify() when using theECDSA algorithm.
In this article
Instance properties
nameA string. This should be set to
ECDSA.hashA string or an object containing a single property called
namewith a string value. It is an identifier for thedigest algorithm to use. This should be one of the following:SHA-256: selects theSHA-256 algorithm.SHA-384: selects theSHA-384 algorithm.SHA-512: selects theSHA-512 algorithm.
Warning:
SHA-1is also supported here but theSHA-1 algorithm is considered vulnerable and should no longer be used.
Examples
See the examples forSubtleCrypto.sign() orSubtleCrypto.verify().
Specifications
| Specification |
|---|
| Web Cryptography Level 2> # SubtleCrypto-method-sign> |
| Web Cryptography Level 2> # SubtleCrypto-method-verify> |
Browser compatibility
Browsers that support the "ECDSA" algorithm for theSubtleCrypto.sign() andSubtleCrypto.verify() methods will support this type.