Skip to content

Add script used to generate PRF test vectors #2281

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

Closed
wants to merge 3 commits into from
Closed

Conversation

emlun
Copy link
Member

@emlun emlun commented Apr 25, 2025

#2209 added test vectors, including some for the PRF extension, and I said that:

I plan to also share the code used to generate these, but I needed to patch some of the libraries I used, so I need to resolve that first.

The PRF (mostly hmac-secret actually) test vectors don't need any patches to upstream libraries, so this PR adds a cleaned-up version of the script used to generate them.

This also revealed a mistake in the documentation of how the salt_enc IV values were generated: the were generated with seed suffixes 0x06 and 0x07, not 0x07 and 0x08. Commit 9464903 first fixes the description to match the test vectors, and commit 87cab44 then reverts to the original description and instead updates the test vectors to match.


Preview | Diff

@emlun
Copy link
Member Author

emlun commented May 6, 2025

Replaced by PR #2289.

@emlun emlun closed this May 6, 2025
@emlun emlun deleted the gen-prf-test-vectors branch May 7, 2025 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant