stablelib
stablelib copied to clipboard
hkdf: info must be passed to extract
Changing the signature of HKDF functions. Specifically passing info
to expand, thus, the hkdf key can be reused across multiple calls to expand.
class HKDF {
constructor(hash: new () => Hash, key: Uint8Array, salt?: Uint8Array);
expand(length: number, info?: Uint8Array):
}
Thank you, this makes sense. I'll look into it.