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] Add ECDSA host-side test harness #21113

Merged
merged 1 commit into from
Feb 23, 2024

Conversation

RyanTorok
Copy link
Contributor

@RyanTorok RyanTorok commented Jan 30, 2024

This PR adds the host-side Rust test harness for the ECDSA Verify operation tests and the associated uJSON C header file. The device-side firmware will be included in #20853.

Dependent on #21112 and #21114

@RyanTorok RyanTorok force-pushed the cryptotest-ecdsa-driver branch from 10bf07f to e8d09e1 Compare January 30, 2024 18:34
@RyanTorok RyanTorok changed the title [cryptotest] Add ECDSA host-side driver and uJSON definitions [cryptotest] Add ECDSA test harness Feb 13, 2024
@RyanTorok RyanTorok force-pushed the cryptotest-ecdsa-driver branch from e8d09e1 to dcd75b6 Compare February 15, 2024 01:40
@RyanTorok RyanTorok changed the title [cryptotest] Add ECDSA test harness [cryptotest] Add ECDSA host-side test harness Feb 15, 2024
@RyanTorok RyanTorok marked this pull request as ready for review February 15, 2024 13:24
@RyanTorok RyanTorok requested review from a team as code owners February 15, 2024 13:24
@RyanTorok RyanTorok requested review from pamaury and removed request for a team February 15, 2024 13:24
@RyanTorok RyanTorok force-pushed the cryptotest-ecdsa-driver branch from dcd75b6 to 194badd Compare February 15, 2024 13:26
// clang-format off

#define ECDSA_OPERATION(_, value) \
value(_, Verify)
Copy link
Contributor

@pamaury pamaury Feb 15, 2024

Choose a reason for hiding this comment

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

It would be nice to document what is expected to follow the Verify device and what does the device answer. For example:

// Following a Verify command, the host is expected to send a `CryptotestEcdsaMessage`,
// a `CryptotestEcdsaSignature` to verify, two `CryptotestEcdsaCoordinate` (I assume the public key).
// The device will respond with a `CryptotestEcdsaVerifyOutput`.

@RyanTorok RyanTorok force-pushed the cryptotest-ecdsa-driver branch from 194badd to d249885 Compare February 20, 2024 17:24
@RyanTorok RyanTorok added the CherryPick:earlgrey_es_sival This PR should be cherry-picked to earlgrey_es_sival label Feb 23, 2024
@milesdai milesdai merged commit de6ded9 into lowRISC:master Feb 23, 2024
33 checks passed
Copy link

Successfully created backport PR for earlgrey_es_sival:

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants