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

rom: Implement fake fips verification using const generics #1629

Closed

Conversation

ArthurHeymans
Copy link
Contributor

The fake rom codepath is largely similar to the regular codepath except certain parts get skipped. Instead of reimplementing most of the verification trait functions use a generic parameter in common code to determine whether the fake rom codepath needs to be taken.

Use the "const-gen" crate to generate a constant literal that is used as the const generics input (using cfg!() won't work).

The fake rom codepath is largely similar to the regular codepath except
certain parts get skipped. Instead of reimplementing most of the
verification trait functions use a generic parameter in common code to
determine whether the fake rom codepath needs to be taken.

Use the "const-gen" crate to generate a constant literal that is used
as the const generics input (using cfg!() won't work).

Signed-off-by: Arthur Heymans <[email protected]>
Instead of having if else statement in the code handle this at the
module level with 'use'.

Signed-off-by: Arthur Heymans <[email protected]>
This reduces indentation making the code easier to read.

Signed-off-by: Arthur Heymans <[email protected]>
@vsonims vsonims added the Caliptra v2.0 Items to be considered for v2.0 Release label Oct 16, 2024
@mhatrevi
Copy link
Collaborator

Closing this for now. We'll revisit this with additional design thinking.

@mhatrevi mhatrevi closed this Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Caliptra v2.0 Items to be considered for v2.0 Release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants