as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
Ring
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持
跳转到主要内容
表示执行密钥派生操作的上下文。

扩展

  • BaseCryptoClass

构造函数

new KeyDerivationContext()

new KeyDerivationContext(): KeyDerivationContext

返回值

KeyDerivationContext

方法

deriveBits()

deriveBits(length: number): Promise<ArrayBuffer> 从输入密钥材料中派生位。

参数

length
number 派生密钥的长度(单位:字节)。Promise 将派生密钥解析为ArrayBuffer的Promise。

返回值

Promise<ArrayBuffer>

deriveKey()

deriveKey(length: number): Promise<SymmetricKey> 从输入的密钥材料中派生对称密钥。

参数

length
number 对称密钥的长度(单位:字节)。Promise 解析为派生对称密钥的Promise。

返回值

Promise<SymmetricKey>
最后修改于 2026年10月26日