mirror of
https://github.com/emmansun/gmsm.git
synced 2025-04-26 12:16:20 +08:00
sm9/bn256: fix gfpTriple generic implementation issue
This commit is contained in:
parent
e769cefbd8
commit
a8b10483e1
@ -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