sm9/bn256: fix gfpTriple generic implementation issue

This commit is contained in:
emmansun 2023-07-21 21:07:50 +08:00
parent e769cefbd8
commit a8b10483e1

View File

@ -47,8 +47,9 @@ func gfpDouble(c, a *gfP) {
}
func gfpTriple(c, a *gfP) {
gfpAdd(c, a, a)
gfpAdd(c, c, a)
t := &gfP{}
gfpAdd(t, a, a)
gfpAdd(c, t, a)
}
func gfpSub(c, a, b *gfP) {