subtle.decrypt(algorithm, key, data)
algorithm: <RsaOaepParams> | <AesCtrParams> | <AesCbcParams> | <AesGcmParams>key: <CryptoKey>data: <ArrayBuffer> | <TypedArray> | <DataView> | <Buffer>- 返回:<Promise> 以 <ArrayBuffer> 完成
使用在 algorithm 中指定的方法和参数以及 key 提供的密钥材料,subtle.decrypt() 尝试解密提供的 data。如果成功,返回的 Promise 将会解析为一个包含明文结果的 <ArrayBuffer>。
【Using the method and parameters specified in algorithm and the keying
material provided by key, subtle.decrypt() attempts to decipher the
provided data. If successful, the returned promise will be resolved with
an <ArrayBuffer> containing the plaintext result.】
目前支持的算法包括:
【The algorithms currently supported include:】
'RSA-OAEP''AES-CTR''AES-CBC''AES-GCM'