internal/radix51: fix !amd64 build (lightReduce -> carryPropagate) (#29)

This commit is contained in:
Sunny Aggarwal 2019-11-25 22:11:09 -05:00 committed by Filippo Valsorda
parent af147e8e15
commit f33454717c
2 changed files with 2 additions and 2 deletions

View File

@ -104,5 +104,5 @@ func (v *FieldElement) Mul(x, y *FieldElement) *FieldElement {
// finally from r_4 to r_0 . Each of these carries is done as one copy, one
// right shift by 51, one logical and with 2^51 1, and one addition.
*v = FieldElement{r00, r10, r20, r30, r40}
return v.lightReduce1().lightReduce2()
return v.carryPropagate1().carryPropagate2()
}

View File

@ -78,5 +78,5 @@ func (v *FieldElement) Square(x *FieldElement) *FieldElement {
r00 += r41
*v = FieldElement{r00, r10, r20, r30, r40}
return v.lightReduce1().lightReduce2()
return v.carryPropagate1().carryPropagate2()
}