as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持

KeyDerivationContext

KeyDerivationContext

表示执行密钥派生操作的上下文。

扩展

  • BaseCryptoClass

方法

deriveBits()

deriveBits(length): Promise<ArrayBuffer>

从输入密钥材料中派生位。

参数

length

number

派生密钥的长度(单位:字节)。

返回值

Promise<ArrayBuffer>

将派生密钥解析为ArrayBuffer的Promise。


deriveKey()

deriveKey(length): Promise<SymmetricKey>

从输入的密钥材料中派生对称密钥。

参数

length

number

对称密钥的长度(单位:字节)。

返回值

Promise<SymmetricKey>

解析为派生对称密钥的Promise。


Last updated: 2025年10月2日