mirror of
https://github.com/emmansun/gmsm.git
synced 2025-04-22 10:16:18 +08:00
sm9: fix neg issue
This commit is contained in:
parent
4bda6e6b6c
commit
5d101fb431
@ -30,8 +30,8 @@ func gfpNeg(c, a *gfP) {
|
||||
for i, pi := range p2 {
|
||||
c[i], carry = bits.Sub64(pi, a[i], carry)
|
||||
}
|
||||
// Is this required?
|
||||
//gfpCarry(c, 0)
|
||||
// really required
|
||||
gfpCarry(c, 0)
|
||||
}
|
||||
|
||||
func gfpAdd(c, a, b *gfP) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user