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/p256: add sec1::EncodedPoint::decompress test #194

Merged
merged 1 commit into from
Sep 21, 2020

Conversation

tarcieri
Copy link
Member

Add tests that the upstream sec1::EncodedPoint::decompress method works given the trait impls in the respective crates.

The generic upstream implementation was previously broken:

RustCrypto/traits#309

The plan is to release elliptic-curve v0.6.1 with the above fix, then yank the broken v0.6.1 release.

@codecov-commenter
Copy link

codecov-commenter commented Sep 21, 2020

Codecov Report

Merging #194 into master will increase coverage by 0.19%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #194      +/-   ##
==========================================
+ Coverage   58.50%   58.70%   +0.19%     
==========================================
  Files          25       25              
  Lines        3767     3775       +8     
==========================================
+ Hits         2204     2216      +12     
+ Misses       1563     1559       -4     
Impacted Files Coverage Δ
k256/src/arithmetic/affine.rs 90.80% <100.00%> (+2.85%) ⬆️
p256/src/arithmetic/affine.rs 93.25% <100.00%> (+2.67%) ⬆️

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 d14844e...828cdae. Read the comment docs.

Add tests that the upstream `sec1::EncodedPoint::decompress` method
works given the trait impls in the respective crates.

The generic upstream implementation was previously broken:

RustCrypto/traits#309

The plan is to release `elliptic-curve` v0.6.1 with the above fix, then
yank the broken v0.6.1 release.
@tarcieri tarcieri force-pushed the test-point-decompression branch from d591632 to 828cdae Compare September 21, 2020 17:39
@tarcieri tarcieri merged commit 550ea95 into master Sep 21, 2020
@tarcieri tarcieri deleted the test-point-decompression branch September 21, 2020 17:46
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