subtle.verify(algorithm, key, signature, data)


版本历史
版本变更
v24.8.0

现在支持 KMAC 算法。

v24.7.0

现在支持 ML-DSA 算法。

v18.4.0, v16.17.0

添加了 'Ed25519''Ed448' 算法。

v15.0.0

新增于: v15.0.0

此方法使用 algorithm 中指定的方法和参数以及 key 提供的密钥材料,尝试验证 signature 是否为 data 的有效加密签名。返回的 promise 通过 truefalse 解决。

\Using the method and parameters given in algorithm and the keying material provided by key, this method attempts to verify that signature is a valid cryptographic signature of data. The returned promise is resolved with either true or false.

目前支持的算法包括:

\The algorithms currently supported include:

  • 'ECDSA'

  • 'Ed25519'

  • 'Ed448'5

  • 'HMAC'

  • 'KMAC128'5

  • 'KMAC256'5

  • 'ML-DSA-44'4

  • 'ML-DSA-65'4

  • 'ML-DSA-87'4

  • 'RSA-PSS'

  • 'RSASSA-PKCS1-v1_5'

AltStyle によって変換されたページ (->オリジナル) /