diff --git a/dh/sidh/internal/isogeny/curve_ops.go b/dh/sidh/internal/isogeny/curve_ops.go index ce1ce9a..9a9581d 100644 --- a/dh/sidh/internal/isogeny/curve_ops.go +++ b/dh/sidh/internal/isogeny/curve_ops.go @@ -81,7 +81,7 @@ func (c *CurveOperations) CalcCurveParamsEquiv4(cparams *ProjectiveCurveParamete 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) { var tmp Fp2Element var op = c.Params.Op diff --git a/dh/sidh/p751/field_ops.go b/dh/sidh/p751/field_ops.go index 4e30cab..cc208fb 100644 --- a/dh/sidh/p751/field_ops.go +++ b/dh/sidh/p751/field_ops.go @@ -12,7 +12,7 @@ import . "github.com/henrydcase/nobs/dh/sidh/internal/isogeny" type fp751Ops struct{} func FieldOperations() FieldOps { - return &fp751Ops{} + return fp751Ops{} } func (fp751Ops) Add(dest, lhs, rhs *Fp2Element) {