Skip to content

Add scripts used to generate test vectors #2289

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

Merged
merged 7 commits into from
May 7, 2025
Merged

Add scripts used to generate test vectors #2289

merged 7 commits into from
May 7, 2025

Conversation

emlun
Copy link
Member

@emlun emlun commented May 6, 2025

This replaces PR #2281.

#2209 added test vectors, 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.

Most of this upstreaming is now resolved, so this PR adds a cleaned-up version of the scripts used to generate test vectors.

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

Copy link
Member

@timcappalli timcappalli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@emlun emlun merged commit 86e50a9 into main May 7, 2025
4 checks passed
@emlun emlun deleted the gen-test-vectors branch May 7, 2025 19:34
github-actions bot added a commit that referenced this pull request May 7, 2025
SHA: 86e50a9
Reason: push, by emlun

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

3 participants