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

PrimeEC Review #1703

Open
mccleeary-galois opened this issue Jul 10, 2024 · 0 comments
Open

PrimeEC Review #1703

mccleeary-galois opened this issue Jul 10, 2024 · 0 comments

Comments

@mccleeary-galois
Copy link
Contributor

mccleeary-galois commented Jul 10, 2024

While looking into #1675 the following was noted by @marsella:

I spent some time looking around in the NIST document with EC algorithms you shared. In that doc, the subtraction algorithm matches what was here previously. I think the missing link is that the doc notes elsewhere that the three coordinates are all field elements, so the mod is implicit.

If we have users who depend on the elliptic curve operations in here, I would recommend making a separate issue to review the full file and bring it closer in line with a reference implementation. The two things I'd focus on are:

  1. Making sure there are no other places where BigNums are being used as normal numbers instead of the field elements they are supposed to represent.
  2. Reviewing the names and conditions in this file compared to the reference. I noticed a few checks that are either missing or are in different places than I expected, so it might be worth confirming that this is fully correct.

Originally posted by @marsella in #1701 (review)

In addition we should look into ec_mult deviating from the spec in which we iterate of the bits of (d, 3d) while the spec does NOT iterate over the most significant bit.

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

No branches or pull requests

1 participant