Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hkdf: info must be passed to extract #27

Open
armfazh opened this issue Mar 16, 2021 · 1 comment
Open

hkdf: info must be passed to extract #27

armfazh opened this issue Mar 16, 2021 · 1 comment

Comments

@armfazh
Copy link

armfazh commented Mar 16, 2021

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):
}
@dchest
Copy link
Member

dchest commented Mar 24, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants