-
Notifications
You must be signed in to change notification settings - Fork 55
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
[Bug] secure_boot_verify_payload fails with InvalidSignature when using ECDSA_NIST_P384_SHA384 crypto suite #272
Comments
may be caused by #279 |
@longlongyang is this issue still relevant or can be closed? |
1 similar comment
@longlongyang is this issue still relevant or can be closed? |
Not much relevant I think, This is an unexpected observation when enabling striping symbols. But since we now have a tool to do the striping work, this can be closed , or map it to mid-February to keep track of it |
Similar comment, I will close it for now and you can open when relevant |
secure_boot_verify_payload fails with InvalidSignature when using ECDSA_NIST_P384_SHA384 crypto suite with strip = "symbols" set in cargo.toml.
Location:
td-shim/td-shim/src/bin/td-shim/verifier.rs
Lines 162 to 164 in 552e40d
How to reproduce the bug:
If no panic is observed using the code change Reproducible build: introduce a tool to help reproducible build #268,
Try add
log::info!("Just visit the image memory, and the bug will be triggered: {:?}\n", self.image[100]);
to the line before line 162
td-shim/td-shim/src/bin/td-shim/verifier.rs
Line 162 in 552e40d
if panic is observed using the code change Reproducible build: introduce a tool to help reproducible build #268, then you have reproduced the bug.
Note: The trigger condition of this bug is not fixed. At very first, I caught the bug without visiting the image(message) memory, and the bug is gone after have a visiting in the image memory; And in the other day, I have to visit the image memory in order to trigger the bug.
FYR:
The signer:
td-shim/td-shim-tools/src/signer.rs
Lines 103 to 122 in 552e40d
The verifier:
td-shim/td-shim/src/bin/td-shim/verifier.rs
Lines 55 to 89 in 552e40d
The text was updated successfully, but these errors were encountered: