sm9/bn256: fix gfp triple generic issue

This commit is contained in:
Sun Yimin 2023-07-21 21:19:45 +08:00 committed by GitHub
parent 76131e6438
commit d452423d62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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) {