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

k256: add Wycheproof test case which triggers debug assert failure #386

Closed
wants to merge 1 commit into from

Conversation

tarcieri
Copy link
Member

This test case is triggering a debug assert in the 32-bit backend only inside of FieldElement10x26::normalize.

The 64-bit backend works correctly.

Relevant assertion:

https://github.com/RustCrypto/elliptic-curves/blob/31bb6ac/k256/src/arithmetic/field/field_10x26.rs#L213-L215

This test case is triggering a debug assert in the 32-bit backend only
inside of `FieldElement10x26::normalize`.

The 64-bit backend works correctly.

Relevant assertion:

https://github.com/RustCrypto/elliptic-curves/blob/31bb6ac/k256/src/arithmetic/field/field_10x26.rs#L213-L215
@codecov-commenter
Copy link

Codecov Report

Merging #386 (4f9f282) into master (3640681) will increase coverage by 0.07%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #386      +/-   ##
==========================================
+ Coverage   58.44%   58.51%   +0.07%     
==========================================
  Files          29       29              
  Lines        4096     4103       +7     
==========================================
+ Hits         2394     2401       +7     
  Misses       1702     1702              
Impacted Files Coverage Δ
k256/src/ecdsa/verify.rs 64.17% <100.00%> (+4.17%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3640681...4f9f282. Read the comment docs.

@tarcieri
Copy link
Member Author

I confirmed that after merging #388 this now passes locally, so I think we should be good to go on #384 now, which includes the tests in this PR.

Going to close this.

@tarcieri tarcieri closed this Jul 21, 2021
@tarcieri tarcieri deleted the k256/add-failing-wycheproof-test-case branch July 21, 2021 22:15
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