as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持
感谢您的访问。此页面目前仅提供英语版本。我们正在开发中文版本。谢谢您的理解。

HkdfContextBuilder

Provides support for building HKDF key derivation contexts.

Extends

  • BaseCryptoClass

Accessors

hashAlgorithm

Set Signature

set hashAlgorithm(hash): void

Set the hash algorithm to use with HMAC (e.g., SHA-256).

Parameters
hash

DigestAlgorithm

The hash algorithm to use.

Returns

void


info

Set Signature

set info(info): void

Set the context information for the expansion step.

Parameters
info

ArrayBuffer

The context information for the expansion step.

Returns

void


salt

Set Signature

set salt(salt): void

Set the salt for the extraction step.

Parameters
salt

ArrayBuffer

The salt to use in the extraction step.

Returns

void

Methods

buildKeyDerivationContext()

buildKeyDerivationContext(key): KeyDerivationContext

Build a context for deriving bits using HKDF.

Parameters

key

SymmetricKey

The key to use as the input keying material (IKM).

Returns

KeyDerivationContext

The HKDF key derivation context object.


Last updated: Oct 02, 2025