Skip to content

Commit

Permalink
sm9/bn256: fix gfp triple generic issue
Browse files Browse the repository at this point in the history
  • Loading branch information
emmansun authored Jul 21, 2023
1 parent 76131e6 commit d452423
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sm9/bn256/gfp_generic.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d452423

Please sign in to comment.