Files
crypto/bn256
Filippo Valsorda 8b1d31080a bn256: explicitly fix MakeAffine for ∞
When c = ∞, z = 0 and 0 does not have a modular inverse, triggering
undefined behavior (recently changed to returning nil) in ModInverse.

Unclear how this used to work anyway. Looks like ModInverse was
leaving the receiver untouched, making zInv = 0 when pool = nil.

Fixes golang/go#25199

Change-Id: Ib39abf59f0e71cf43cdb5836142ebdd3b206fb3f
Reviewed-on: https://go-review.googlesource.com/110695
Run-TryBot: Filippo Valsorda <filippo@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Filippo Valsorda <filippo@golang.org>
Reviewed-by: Adam Langley <agl@golang.org>
2018-05-02 18:48:08 +00:00
..
2016-12-06 19:59:59 +00:00
2012-07-27 12:54:55 -04:00
2012-07-27 12:54:55 -04:00
2012-07-27 12:54:55 -04:00
2012-07-27 12:54:55 -04:00
2012-07-27 12:54:55 -04:00