-
Notifications
You must be signed in to change notification settings - Fork 163
sike mitigation with test cases #336
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
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.
some minor changes needed
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.
Thanks @zhdllwyc, this is great.
// Compute e_3 = log3(2^(nbits+1)) | ||
var e3 uint32 | ||
e3_float := float64(int(nbits)+1)/math.Log2(3) | ||
e3 = uint32(e3_float) |
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 nicer to have e3
as a constant in SidhParams
instead of recomputing.
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.
Having e3 as a parameter requires me to change the params.go
I want to put changes in the test files as much as possible.
Do you think I should touch the params.go?
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.
e3 is definitely a constant, however, its calculation is simple and used once.
We may revisit later moving this value to the params files.
9ca8a3e
to
005359c
Compare
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.
two minor changes needed so far
@@ -260,7 +261,7 @@ func DeriveSecretA(ss, prv []byte, pub3Pt *[3]Fp2) { | |||
} | |||
|
|||
// Establishing shared keys in in 3-torsion group | |||
func DeriveSecretB(ss, prv []byte, pub3Pt *[3]Fp2) { | |||
func DeriveSecretB(ss, prv []byte, pub3Pt *[3]Fp2) { |
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.
Run go fmt
No description provided.