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 IPbkdf2ContextBuilder

interface IPbkdf2ContextBuilder
Extends com.amazon.apmf.IStandard Interface for building PBKDF2 key derivation contexts.

Methods

hashAlgorithm()

IPbkdf2ContextBuilder* hashAlgorithm(IDigestAlgorithm* hash)
Set the hash algorithm to use with HMAC.

Parameters

hash
IDigestAlgorithm* — Required The hash algorithm to use.

Returns

IPbkdf2ContextBuilder* The PBKDF2 context builder object.

salt()

IPbkdf2ContextBuilder* salt(u8[] salt)
Set the salt for the PBKDF2 operation.

Parameters

salt
u8[] — Required The salt to use in the key derivation process.

Returns

IPbkdf2ContextBuilder* The PBKDF2 context builder object.

iterations()

IPbkdf2ContextBuilder* iterations(u64 iterations)
Set the number of iterations for the PBKDF2 operation.

Parameters

iterations
u64 — Required The number of iterations to use.

Returns

IPbkdf2ContextBuilder* The PBKDF2 context builder object.

buildKeyDerivationContext()

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

Parameters

key
ISymmetricKey* — Required The key to use as the password.

Returns

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