hash-wasm icon indicating copy to clipboard operation
hash-wasm copied to clipboard

feat(blake3): add key derivation

Open TamaraFinogina opened this issue 5 months ago • 2 comments

PR for Discussion #72.

By design, Blake3 provides a key derivation mode that accepts a context string of any length and key material of any length, producing a derived key of any length. See Blake3 repo.

Hash-wasm didn't have it, but it's easy to add.

P.S. Test vectors are generated by the BLAKE3 team.

TamaraFinogina avatar Aug 05 '25 10:08 TamaraFinogina

@Daninet, What do you think?

TamaraFinogina avatar Oct 10 '25 12:10 TamaraFinogina

I like the idea. Thank you for the PR. I will try to release it with the next version when I have some free time to review the code.

Daninet avatar Oct 10 '25 12:10 Daninet