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

[cryptotest] Test harness for SPHINCS+ verify operation w/ SHA-2 #21681

Merged

Conversation

RyanTorok
Copy link
Contributor

@RyanTorok RyanTorok commented Feb 26, 2024

This PR is a follow-up to #21680. Adds a test harness for SPHINCS+ verify operation tests w/ SHAKE-256 in the style of the test harnesses for the algorithms in cryptolib. Structurally, the test harness has a lot in common with the ECDSA harness in #21113 and #20853, except that there is no elliptic curve parameter.

[Resolved] The dependency on #22953 exists because this PR switches the test vectors to use the consistent-basew version of SPHINCS+.

Dependent on #21680
Dependent on #22953

@RyanTorok RyanTorok requested review from cfrantz and a team as code owners February 26, 2024 13:30
@RyanTorok RyanTorok requested review from alees24, jadephilipoom and milesdai and removed request for a team February 26, 2024 13:30
@RyanTorok RyanTorok added the CherryPick:earlgrey_es_sival This PR should be cherry-picked to earlgrey_es_sival label Mar 4, 2024
@RyanTorok RyanTorok force-pushed the cryptotest-sphincsplus-harness branch from 0ca359a to 5e58ff8 Compare March 15, 2024 17:21
@RyanTorok RyanTorok force-pushed the cryptotest-sphincsplus-harness branch from 5e58ff8 to e3bf1a8 Compare May 6, 2024 18:03
@RyanTorok RyanTorok force-pushed the cryptotest-sphincsplus-harness branch from e3bf1a8 to 20dee7f Compare July 1, 2024 13:59
@RyanTorok RyanTorok changed the title [cryptotest] Test harness for SPHINCS+ verify operation w/ SHAKE-256 [cryptotest] Test harness for SPHINCS+ verify operation w/ SHA-2 Jul 1, 2024
@RyanTorok
Copy link
Contributor Author

Updated this PR to use the test vectors for SPX w/ SHA-2 instead of SHAKE, since this was changed in ROM in #23732 .

RyanTorok and others added 4 commits July 1, 2024 14:16
23732 switched SPHINCS+ to use SHA-2 instead of SHAKE. This commit adds
a new bazel rule to fetch the test vector zip file that was uploaded to
the GCP bucket to test the new configuration.

Signed-off-by: Ryan Torok <[email protected]>
@RyanTorok RyanTorok force-pushed the cryptotest-sphincsplus-harness branch from 20dee7f to 4710c16 Compare July 1, 2024 14:16
@jadephilipoom jadephilipoom merged commit 445643e into lowRISC:master Jul 9, 2024
32 checks passed
Copy link

github-actions bot commented Jul 9, 2024

Backport failed for earlgrey_es_sival, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin earlgrey_es_sival
git worktree add -d .worktree/backport-21681-to-earlgrey_es_sival origin/earlgrey_es_sival
cd .worktree/backport-21681-to-earlgrey_es_sival
git switch --create backport-21681-to-earlgrey_es_sival
git cherry-pick -x 6eb738f7bed0397485fe93450b57432984a9c1f4 74ae6d87ae43b40b38dfb1fac002eb91e9c32fbd 677e063d7eea67df7f5a3f866b6fd0b32f1c83f9 4710c1613aa29ac3d1880217b91b3caabb4af67f

@github-actions github-actions bot added the Manually CherryPick This PR should be manually cherry picked. label Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CherryPick:earlgrey_es_sival This PR should be cherry-picked to earlgrey_es_sival Manually CherryPick This PR should be manually cherry picked.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants