mirror of
https://github.com/emmansun/gmsm.git
synced 2025-04-26 20:26:19 +08:00
fix own error
This commit is contained in:
parent
7bd1a3823e
commit
35fb02af53
@ -111,7 +111,7 @@ func (e *gfP) exp2(f *gfP, power *big.Int) *gfP {
|
||||
for i := power.BitLen() - 1; i >= 0; i-- {
|
||||
gfpMul(t, sum, sum)
|
||||
if power.Bit(i) != 0 {
|
||||
gfpMul(sum, f, f)
|
||||
gfpMul(sum, t, f)
|
||||
} else {
|
||||
sum.Set(t)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user