Constructors
constructor
- new HKDF(hash: object, key: Uint8Array, salt?: Uint8Array, info?: Uint8Array): HKDF
-
Parameters
-
hash: object
-
key: Uint8Array
-
Default value salt: Uint8Array = new Uint8Array(0)
-
Optional info: Uint8Array
Methods
expand
- expand(length: number): Uint8Array
-
Parameters
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.