Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Skip to main content
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 modified on October 2, 2025