EcdsaParams dictionary of the Web 加密 API represents the object that should be passed as the algorithm parameter into SubtleCrypto.sign() or SubtleCrypto.verify() when using the ECDSA 算法。

特性

名称
DOMString . This should be set to ECDSA .
hash
DOMString . An identifier for the digest algorithm to use. This should be one of the following:

警告 : SHA-1 is also supported here but the SHA-1 algorithm is considered vulnerable and should no longer be used.

范例

See the examples for SubtleCrypto.sign() or SubtleCrypto.verify() .

规范

规范 状态 注释
Web Cryptography API
The definition of 'SubtleCrypto.EcdsaParams' in that specification.
推荐

浏览器兼容性

Browsers that support the "ECDSA" algorithm for the SubtleCrypto.sign() and SubtleCrypto.verify() methods will support this type.

更新 GitHub 上的兼容性数据
桌面 移动
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
sign Chrome 37 Edge 部分支持 12
部分支持 12
Not supported: RSA-PSS, ECDSA.
Firefox 34
34
不支持 32 — 34 Disabled
Disabled ). To change preferences in Firefox, visit
IE 部分支持 11
部分支持 11
返回 CryptoOperation 而不是 Promise
Opera 24 Safari 7 WebView Android 37 Chrome Android 37 Firefox Android 34
34
不支持 32 — 34 Disabled
Disabled ). To change preferences in Firefox, visit
Opera Android 24 Safari iOS 7 Samsung Internet Android 6.0

图例

完整支持

完整支持

部分支持

部分支持

见实现注意事项。

用户必须明确启用此特征。

用户必须明确启用此特征。

另请参阅

元数据

  • 最后修改:
  1. Web 加密 API
  2. EcdsaParams
  3. Related pages for Web Crypto API
    1. Crypto
    2. CryptoKey
    3. CryptoKeyPair
    4. RandomSource
    5. SubtleCrypto
    6. Window.crypto

版权所有  © 2014-2026 乐数软件    

工业和信息化部: 粤ICP备14079481号-1