subtle.decapsulateKey(decapsulationAlgorithm, decapsulationKey, ciphertext, sharedKeyAlgorithm, extractable, usages)
稳定性: 1.1 - 积极开发
¥Stability: 1.1 - Active development
-
decapsulationAlgorithm
<string> -
decapsulationKey
<CryptoKey> -
ciphertext
<ArrayBuffer> | <TypedArray> | <DataView> | <Buffer> -
sharedKeyAlgorithm
<string> | <HmacImportParams> -
extractable
<boolean> -
usages
<string[]> 参见 关键用法。¥
usages
<string[]> See Key usages. -
返回:<Promise> 成功时将使用 <CryptoKey> 履行。
¥Returns: <Promise> Fulfills with <CryptoKey> upon success.
消息接收者使用其非对称私钥解密 "封装密钥"(密文),从而恢复临时对称密钥(表示为 <CryptoKey>),然后使用该密钥解密消息。
¥A message recipient uses their asymmetric private key to decrypt an "encapsulated key" (ciphertext), thereby recovering a temporary symmetric key (represented as <CryptoKey>) which is then used to decrypt a message.
目前支持的算法包括:
¥The algorithms currently supported include: