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

[crypto] Add a counter to the main loop of ECDSA-P256 verify. #23921

Merged
merged 3 commits into from
Jul 6, 2024

Commits on Jul 6, 2024

  1. [crypto] Add a counter to the main loop of ECDSA-P256 verify.

    This is a lightweight hardening measure against fault-injection attacks on the
    loop control flow in OTBN.
    
    Signed-off-by: Jade Philipoom <jadep@zerorisc.com>
    jadephilipoom committed Jul 6, 2024
    Configuration menu
    Copy the full SHA
    ad3ba9d View commit details
    Browse the repository at this point in the history
  2. [crypto] Add a little more control-flow hardening inside P256 loop.

    Make the counter increments dependent on some should-be-noop instructions
    throughout the control flowof the main loop.
    
    Signed-off-by: Jade Philipoom <jadep@zerorisc.com>
    jadephilipoom committed Jul 6, 2024
    Configuration menu
    Copy the full SHA
    ae0b135 View commit details
    Browse the repository at this point in the history
  3. [rom] Update golden ROM hashes.

    Updates the golden hashes to incorporate the new counter in P256 verify.
    
    Signed-off-by: Jade Philipoom <jadep@zerorisc.com>
    jadephilipoom committed Jul 6, 2024
    Configuration menu
    Copy the full SHA
    812fd66 View commit details
    Browse the repository at this point in the history