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

[fi/otp] Add OTP data read test to FI framework #367

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wettermo
Copy link
Contributor

@wettermo wettermo commented May 16, 2024

This PR adds code for FI pen-testing the OTP module.

The test sequence can be summarized in the following way:

  1. Read content from a selected OTP partition for comparison values
  2. Perform fault injection on nop instructions
  3. Read content from the same OTP partition again
  4. Compare output with previous output and check if values differ

The OTP partition to read can be selected through the "which_test" parameter in the config file.
The corresponding PR in lowRISC/opentitan is lowRISC/opentitan#23156

This adds code for FI pen-testing the OTP module.
The test sequence can be summarized in the following way:
  1. Read content from a selected OTP partition for comparison values
  2. Perform fault injection on nop instructions
  3. Read content from the same OTP partition again
  4. Compare output with previous output and check if values differ
The OTP partition to read can be selected through the "which_test"
parameter in the config file.

Signed-off-by: Moritz Wettermann <[email protected]>
Copy link
Member

@nasahlpa nasahlpa left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

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