mirror of
https://github.com/emmansun/gmsm.git
synced 2025-05-12 12:06:18 +08:00
sm9/bn256: fix gfp triple generic issue
This commit is contained in:
parent
76131e6438
commit
d452423d62
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user