mirror of
https://github.com/henrydcase/nobs.git
synced 2024-11-22 15:18:57 +00:00
Nits for SIDH
This commit is contained in:
parent
08f7315b64
commit
b184944242
@ -81,7 +81,7 @@ func (c *CurveOperations) CalcCurveParamsEquiv4(cparams *ProjectiveCurveParamete
|
|||||||
return coefEq
|
return coefEq
|
||||||
}
|
}
|
||||||
|
|
||||||
// Helper function for RightToLeftLadder(). Returns A+2C / 4.
|
// Helper function for ScalarMul3Pt(). Returns A+2C / 4.
|
||||||
func (c *CurveOperations) CalcAplus2Over4(cparams *ProjectiveCurveParameters) (ret Fp2Element) {
|
func (c *CurveOperations) CalcAplus2Over4(cparams *ProjectiveCurveParameters) (ret Fp2Element) {
|
||||||
var tmp Fp2Element
|
var tmp Fp2Element
|
||||||
var op = c.Params.Op
|
var op = c.Params.Op
|
||||||
|
@ -12,7 +12,7 @@ import . "github.com/henrydcase/nobs/dh/sidh/internal/isogeny"
|
|||||||
type fp751Ops struct{}
|
type fp751Ops struct{}
|
||||||
|
|
||||||
func FieldOperations() FieldOps {
|
func FieldOperations() FieldOps {
|
||||||
return &fp751Ops{}
|
return fp751Ops{}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (fp751Ops) Add(dest, lhs, rhs *Fp2Element) {
|
func (fp751Ops) Add(dest, lhs, rhs *Fp2Element) {
|
||||||
|
Loading…
Reference in New Issue
Block a user