subtle.verify(algorithm, key, signature, data)
algorithm: <AlgorithmIdentifier> | <RsaPssParams> | <EcdsaParams> | <Ed448Params>key: <CryptoKey>signature: <ArrayBuffer> | <TypedArray> | <DataView> | <Buffer>data: <ArrayBuffer> | <TypedArray> | <DataView> | <Buffer>- 返回:包含 <boolean> 的 <Promise>
使用 algorithm 中给定的方法和参数以及 key 提供的密钥材料,subtle.verify() 尝试验证 signature 是否是 data 的有效加密签名。返回的 Promise 会解析为 true 或 false。
🌐 Using the method and parameters given in algorithm and the keying material
provided by key, subtle.verify() 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: