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

[cert] move cert keygen function to otbn_boot_services lib #24440

Merged
merged 1 commit into from
Aug 29, 2024

Conversation

timothytrippel
Copy link
Contributor

This moves the cert_ecc_p256_keygen() function from the cert lib to the otbn_boot_services lib to simplify on-host unit testing of the cert lib. The otbn_boot_services lib is only tested on-device at the moment due to the dependencies on specific OpenTitan hardware that is difficult to mock. In refactoring this, the cert_unittest is now fixed.

This moves the `cert_ecc_p256_keygen()` function from the `cert` lib to
the `otbn_boot_services` lib to simplify on-host unit testing of the
`cert` lib. The `otbn_boot_services` lib is only tested on-device at the
moment due to the dependencies on specific OpenTitan hardware that is
difficult to mock. In refactoring this, the cert_unittest is now fixed.

Signed-off-by: Tim Trippel <ttrippel@google.com>
@timothytrippel timothytrippel marked this pull request as ready for review August 29, 2024 16:42
@timothytrippel timothytrippel requested a review from a team as a code owner August 29, 2024 16:42
@timothytrippel timothytrippel requested review from cfrantz and removed request for a team August 29, 2024 16:42
@timothytrippel timothytrippel merged commit c90a625 into lowRISC:master Aug 29, 2024
36 checks passed
@timothytrippel timothytrippel deleted the fix-cert-unittest branch August 29, 2024 23:56
@timothytrippel timothytrippel added the CherryPick:earlgrey_1.0.0 This PR should be cherry-picked to earlgrey_1.0.0 label Oct 22, 2024
Copy link

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

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

git fetch origin earlgrey_1.0.0
git worktree add -d .worktree/backport-24440-to-earlgrey_1.0.0 origin/earlgrey_1.0.0
cd .worktree/backport-24440-to-earlgrey_1.0.0
git switch --create backport-24440-to-earlgrey_1.0.0
git cherry-pick -x bd3b9fd572b5b1a50f911f0623c054e4d6556d0f

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

Successfully merging this pull request may close these issues.

2 participants