Was apparently checked in by https://go-review.googlesource.com/#/c/9253/
without being gofmt-ed.
TBR: agl
Change-Id: I4d011dbaa15b7c5e73ca71f724f32951a0302dae
Reviewed-on: https://go-review.googlesource.com/10353
Reviewed-by: Robert Griesemer <gri@golang.org>
}
var montgomeryTests = []struct {
- x, y, m string
- k0 uint64
- out32, out64 string
+ x, y, m string
+ k0 uint64
+ out32, out64 string
}{
{
"0xffffffffffffffffffffffffffffffffffffffffffffffffe",
out = natFromString(test.out64)
}
- k0 := Word(test.k0 & _M) // mask k0 to ensure that it fits for 32-bit systems.
+ k0 := Word(test.k0 & _M) // mask k0 to ensure that it fits for 32-bit systems.
z := nat(nil).montgomery(x, y, m, k0, len(m))
z = z.norm()
if z.cmp(out) != 0 {