-
Notifications
You must be signed in to change notification settings - Fork 0
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
Changes for ElectionGuard Elliptic Curves #76
Comments
Michael's response:
John: So the constants for P-256 are:
I'm assuming that primeModulus is analogous to P, and order is analogous to Q, and that h is the cofactor (so that "the curve does not have a cofactor"). Then, for ElementModQ:
For the rest of the code, ElementModQ and ElementModP are used exactly as before as with the integer group. For example, wherever the spec uses inBounds() or isValidResidue(). Does that seem right to you? Any other places you forsee a problem switching to Elliptic curves? Michael:
|
Michael:
|
ElementP.isValidResidual: ElementQ.inBounds: |
Sent message to Josh Benaloh and Michael Naehrig:
I need some advice on how to implement these two functions in the egk-ec library, namely testing if an ElementModP is "in bounds" and testing if it is a "valid residual":
In the standard electionguard Integer group, they are implemented as
Im trying to figure out what the equivalent implementation is for the Elliptic Curve P-256 group.
The text was updated successfully, but these errors were encountered: