Skip to content

p256: impl ff and group traits#169

Merged
tarcieri merged 1 commit into
masterfrom
k256/ff-and-group-traits
Sep 6, 2020
Merged

p256: impl ff and group traits#169
tarcieri merged 1 commit into
masterfrom
k256/ff-and-group-traits

Conversation

@tarcieri

@tarcieri tarcieri commented Sep 6, 2020

Copy link
Copy Markdown
Member

Corresponding change to #164, but for the p256 crate.

  • Impls ff::{Field, PrimeField} on Scalar
  • Impls group::{Group, Curve} on ProjectivePoint

@tarcieri tarcieri requested review from nickray and str4d September 6, 2020 16:36
Comment on lines +128 to +131
// TODO(tarcieri); stub!
fn sqrt(&self) -> CtOption<Self> {
todo!();
}

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stub!

Comment thread p256/src/arithmetic/scalar.rs Outdated
@codecov-commenter

codecov-commenter commented Sep 6, 2020

Copy link
Copy Markdown

Codecov Report

Merging #169 into master will decrease coverage by 1.05%.
The diff coverage is 24.44%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #169      +/-   ##
==========================================
- Coverage   59.43%   58.38%   -1.06%     
==========================================
  Files          25       25              
  Lines        3688     3775      +87     
==========================================
+ Hits         2192     2204      +12     
- Misses       1496     1571      +75     
Impacted Files Coverage Δ
k256/src/arithmetic/projective.rs 76.73% <0.00%> (ø)
k256/src/arithmetic/scalar.rs 74.90% <0.00%> (-1.70%) ⬇️
p256/src/arithmetic/projective.rs 75.20% <21.21%> (-9.38%) ⬇️
p256/src/arithmetic/scalar.rs 80.39% <33.87%> (-10.37%) ⬇️
p256/src/arithmetic/scalar/blinding.rs 91.66% <100.00%> (ø)
p256/src/ecdsa.rs 90.47% <100.00%> (ø)

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 ebac050...fb19fcd. Read the comment docs.

@tarcieri tarcieri force-pushed the k256/ff-and-group-traits branch from 8bfa8b6 to fda0c0b Compare September 6, 2020 16:50
@tarcieri

tarcieri commented Sep 6, 2020

Copy link
Copy Markdown
Member Author

Ugh, named the branch incorrectly, oh well 😅

Comment thread p256/src/arithmetic/scalar.rs Outdated

const NUM_BITS: u32 = 256;
const CAPACITY: u32 = 256;
const S: u32 = 3;

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I did this right, the relevant byte is 0xb9 - 1:

10111000

Corresponding change to #164, but for the `p256` crate.

- Impls `ff::{Field, PrimeField}` on `Scalar`
- Impls `group::{Group, Curve}` on `ProjectivePoint`
@tarcieri tarcieri force-pushed the k256/ff-and-group-traits branch from fda0c0b to fb19fcd Compare September 6, 2020 18:49
@tarcieri tarcieri requested review from fjarri and tuxxy September 6, 2020 18:58
@tarcieri tarcieri merged commit e760150 into master Sep 6, 2020
@tarcieri tarcieri deleted the k256/ff-and-group-traits branch September 6, 2020 19:44
@tarcieri tarcieri mentioned this pull request Sep 6, 2020
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