-
Notifications
You must be signed in to change notification settings - Fork 870
[otbn] Patch an error in the OTBN boot services program #27679
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
base: earlgrey_1.0.0
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing this!
LGTM.
* | ||
* There is a bug in the OTBN boot services program loaded by ROM. There is a | ||
* single instruction with mistakenly transposed operands which can affect the | ||
* random share values. This bug DOES NOT affect the correctness of the OTBN |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* random share values. This bug DOES NOT affect the correctness of the OTBN | |
* random share values. This bug DOES NOT affect the correctness of the OTBN |
// Patch a bug in the OTBN ECDSA-P256 program. | ||
// | ||
// There is a single instruction with mistakenly transposed operands which | ||
// can affect the random share values. This bug DOES NOT affect the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// can affect the random share values. This bug DOES NOT affect the | |
// can affect the random share values. This bug DOES NOT affect the |
Are there any suggestions for testing this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
IMO running the |
There is an error in the OTBN boot services program loaded by the ROM that can affect the random share values. This bug is caused by a simple transposition of operands in the `p256_base` source code. Since the OTBN program is stored in ROM and loaded into OTBN by the ROM, we patch it in the immutable section before we use that portion of the program. DO NOT cherrypick this change to the `master` branch. Signed-off-by: Chris Frantz <cfrantz@google.com>
There is an error in the OTBN boot services program loaded by the ROM that can affect the random share values. This bug is caused by a simple transposition of operands in the
p256_base
source code.Since the OTBN program is stored in ROM and loaded into OTBN by the ROM, we patch it in the immutable section before we use that portion of the program.
DO NOT cherrypick this change to the
master
branch.