Constructors
constructor
- new HKDF(hash, key, salt?, info?): HKDF
Parameters
- hash: (new () => Hash)
- key: Uint8Array
- salt: Uint8Array = ...
Optional
info: Uint8Array
Methods
clean
- clean(): void
Returns void
expand
- expand(length): Uint8Array
Returns Uint8Array
HMAC-based Extract-and-Expand Key Derivation Function.
Implements HKDF from RFC5869.
Expands the given master key with salt and info into a limited stream of key material.