mirror of
https://github.com/emmansun/gmsm.git
synced 2025-04-27 20:56: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 {
|
for i, pi := range p2 {
|
||||||
c[i], carry = bits.Sub64(pi, a[i], carry)
|
c[i], carry = bits.Sub64(pi, a[i], carry)
|
||||||
}
|
}
|
||||||
// Is this required?
|
// really required
|
||||||
//gfpCarry(c, 0)
|
gfpCarry(c, 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
func gfpAdd(c, a, b *gfP) {
|
func gfpAdd(c, a, b *gfP) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user