Interface IPbkdf2ContextBuilder
interface IPbkdf2ContextBuilder
Extends com.amazon.apmf.IStandard
Interface for building PBKDF2 key derivation contexts.
Methods
hashAlgorithm()
Set the hash algorithm to use with HMAC.IPbkdf2ContextBuilder*hashAlgorithm(IDigestAlgorithm*hash)
Parameters
hash
IDigestAlgorithm* — Required
The hash algorithm to use.
Returns
IPbkdf2ContextBuilder*
The PBKDF2 context builder object.
salt()
Set the salt for the PBKDF2 operation.IPbkdf2ContextBuilder*salt(u8[]salt)
Parameters
salt
u8[] — Required
The salt to use in the key derivation process.
Returns
IPbkdf2ContextBuilder*
The PBKDF2 context builder object.
iterations()
Set the number of iterations for the PBKDF2 operation.IPbkdf2ContextBuilder*iterations(u64iterations)
Parameters
iterations
u64 — Required
The number of iterations to use.
Returns
IPbkdf2ContextBuilder*
The PBKDF2 context builder object.
buildKeyDerivationContext()
Build a context for deriving bits using PBKDF2.IKeyDerivationContext*buildKeyDerivationContext(ISymmetricKey*key)
Parameters
key
ISymmetricKey* — Required
The key to use as the password.
Returns
IKeyDerivationContext*
The PBKDF2 key derivation context object.

