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
Native
Skip to main content

Interface IHkdfContextBuilder

interface IHkdfContextBuilder
Extends com.amazon.apmf.IStandard Interface for building HKDF key derivation contexts.

Methods

hashAlgorithm()

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

Parameters

hash
IDigestAlgorithm* — Required The hash algorithm to use.

Returns

IHkdfContextBuilder* The HKDF context builder object.

salt()

IHkdfContextBuilder* salt(u8[] salt)
Set the salt for the extraction step.

Parameters

salt
u8[] — Required The salt to use in the extraction step.

Returns

IHkdfContextBuilder* The HKDF context builder object.

info()

IHkdfContextBuilder* info(u8[] info)
Set the context information for the expansion step.

Parameters

info
u8[] — Required The context information for the expansion step.

Returns

IHkdfContextBuilder* The HKDF context builder object.

buildKeyDerivationContext()

IKeyDerivationContext* buildKeyDerivationContext(ISymmetricKey* key)
Build a context for deriving bits using HKDF.

Parameters

key
ISymmetricKey* — Required The key to use as the input keying material (IKM).

Returns

IKeyDerivationContext* The HKDF key derivation context object.
Last modified on October 29, 2026