Skip to content

k256: impl ConstantTimeEq for Scalar; is_zero()#66

Merged
tarcieri merged 1 commit into
masterfrom
k256/scalar-constant-time-eq
Jul 11, 2020
Merged

k256: impl ConstantTimeEq for Scalar; is_zero()#66
tarcieri merged 1 commit into
masterfrom
k256/scalar-constant-time-eq

Conversation

@tarcieri

Copy link
Copy Markdown
Member

Adds an impl of subtle::ConstantTimeEq on Scalar.

Uses that impl to define Scalar::is_zero, and then uses is_zero within the Neg impl.

Adds an impl of `subtle::ConstantTimeEq` on `Scalar`.

Uses that impl to define `Scalar::is_zero`, and then uses `is_zero`
within the `Neg` impl.
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

Merging #66 into master will increase coverage by 0.03%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #66      +/-   ##
==========================================
+ Coverage   81.46%   81.50%   +0.03%     
==========================================
  Files          12       12              
  Lines        1392     1395       +3     
==========================================
+ Hits         1134     1137       +3     
  Misses        258      258              
Impacted Files Coverage Δ
k256/src/arithmetic/scalar.rs 87.67% <100.00%> (+0.52%) ⬆️

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 fd3516f...3dcbc35. Read the comment docs.

@tarcieri tarcieri merged commit b8721a2 into master Jul 11, 2020
@tarcieri tarcieri deleted the k256/scalar-constant-time-eq branch July 11, 2020 15:16
@tarcieri tarcieri mentioned this pull request Jul 11, 2020
tarcieri added a commit that referenced this pull request Jul 11, 2020
Adds an impl of `subtle::ConstantTimeEq` on `Scalar`.

Uses that impl to define `Scalar::is_zero`, and then uses `is_zero`
within the `Neg` impl.
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