-
Notifications
You must be signed in to change notification settings - Fork 168
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
Curve renaming #528
Curve renaming #528
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please add package level documentation comments for all of these packages to mention their differences and what they implement?
@@ -10,7 +10,7 @@ | |||
// are isomorphic to curves having c == 1. | |||
// | |||
// For details see Bernstein et al, "Twisted Edwards Curves", http://eprint.iacr.org/2008/013.pdf | |||
package curve25519 | |||
package var_ed25519 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to change package comment on line 1 here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also renaming below "func Param25519() *Param
" to "func ParamEd25519() *Param
" might be best.
group/p256/doc.go
Outdated
@@ -1,3 +1,3 @@ | |||
// Package nist implements cryptographic groups and ciphersuites |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need to change package level comment here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall seeing there are no test vectors for Ed25519 using actual given values and checking computations are correct makes me worried.
But that's for another issue/PR I guess.
group/var_ed25519/curve.go
Outdated
// NewKey returns a formatted curve25519 key (avoiding subgroup attack by requiring | ||
// NewKey returns a formatted var_ed25519 key (avoiding subgroup attack by requiring | ||
// it to be a multiple of 8). NewKey implements the kyber/util/key.Generator interface. | ||
func (c *curve) NewKey(stream cipher.Stream) kyber.Scalar { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe returns a scalar suitable for use as a secret key
instead of naming the curve @matteosz?
Please retry analysis of this Pull-Request directly on SonarCloud |
Quality Gate passedIssues Measures |
This PR addresses partially #384, by:
For a future PR we could add the curve25519 (Montgomery representation).