stablelib icon indicating copy to clipboard operation
stablelib copied to clipboard

hkdf: info must be passed to extract

Open armfazh opened this issue 3 years ago • 1 comments

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):
}

armfazh avatar Mar 16 '21 10:03 armfazh

Thank you, this makes sense. I'll look into it.

dchest avatar Mar 24 '21 17:03 dchest