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-256
: selects the
SHA-256
算法。
SHA-384
: selects the
SHA-384
算法。
SHA-512
: selects the
SHA-512
算法。
警告
:
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.
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
sign
|
Chrome 37 |
Edge
部分支持
12
|
Firefox
34
|
IE
部分支持
11
|
Opera 24 | Safari 7 | WebView Android 37 | Chrome Android 37 |
Firefox Android
34
|
Opera Android 24 | Safari iOS 7 | Samsung Internet Android 6.0 |
完整支持
部分支持
见实现注意事项。
用户必须明确启用此特征。
EcdsaParams