Skip to content

Commit 8d7daa0

Browse files
kc1212agl
authored andcommitted
bn256: fix gfp12 MulScalar
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 <[email protected]> Run-TryBot: Adam Langley <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
1 parent 505ab14 commit 8d7daa0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bn256/gfp12.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ func (e *gfP12) Mul(a, b *gfP12, pool *bnPool) *gfP12 {
125125
}
126126

127127
func (e *gfP12) MulScalar(a *gfP12, b *gfP6, pool *bnPool) *gfP12 {
128-
e.x.Mul(e.x, b, pool)
129-
e.y.Mul(e.y, b, pool)
128+
e.x.Mul(a.x, b, pool)
129+
e.y.Mul(a.y, b, pool)
130130
return e
131131
}
132132

0 commit comments

Comments
 (0)