Skip to content

Commit

Permalink
bn256: fix gfp12 MulScalar
Browse files Browse the repository at this point in the history
Previously MulScalar was ignoring the first parameter, which was inconsistent with gfp6 and gfp2.

Change-Id: I4f4a4ca2f07a25176ab159be684a02696f1580ba
GitHub-Last-Rev: ec40c04
GitHub-Pull-Request: #67
Reviewed-on: https://go-review.googlesource.com/c/154457
Reviewed-by: Adam Langley <agl@golang.org>
Run-TryBot: Adam Langley <agl@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
  • Loading branch information
kc1212 authored and agl committed Jan 2, 2019
1 parent 505ab14 commit 8d7daa0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bn256/gfp12.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ func (e *gfP12) Mul(a, b *gfP12, pool *bnPool) *gfP12 {
}

func (e *gfP12) MulScalar(a *gfP12, b *gfP6, pool *bnPool) *gfP12 {
e.x.Mul(e.x, b, pool)
e.y.Mul(e.y, b, pool)
e.x.Mul(a.x, b, pool)
e.y.Mul(a.y, b, pool)
return e
}

Expand Down

0 comments on commit 8d7daa0

Please sign in to comment.