Interface IHkdfContextBuilder
interface IHkdfContextBuilder
Extends com.amazon.apmf.IStandard
Interface for building HKDF key derivation contexts.
Methods
hashAlgorithm()
Set the hash algorithm to use with HMAC (e.g., SHA-256).IHkdfContextBuilder*hashAlgorithm(IDigestAlgorithm*hash)
Parameters
hash
IDigestAlgorithm* — Required
The hash algorithm to use.
Returns
IHkdfContextBuilder*
The HKDF context builder object.
salt()
Set the salt for the extraction step.IHkdfContextBuilder*salt(u8[]salt)
Parameters
salt
u8[] — Required
The salt to use in the extraction step.
Returns
IHkdfContextBuilder*
The HKDF context builder object.
info()
Set the context information for the expansion step.IHkdfContextBuilder*info(u8[]info)
Parameters
info
u8[] — Required
The context information for the expansion step.
Returns
IHkdfContextBuilder*
The HKDF context builder object.
buildKeyDerivationContext()
Build a context for deriving bits using HKDF.IKeyDerivationContext*buildKeyDerivationContext(ISymmetricKey*key)
Parameters
key
ISymmetricKey* — Required
The key to use as the input keying material (IKM).
Returns
IKeyDerivationContext*
The HKDF key derivation context object.

