1
0
mirror of https://github.com/golang/go synced 2024-09-25 15:10:11 -06:00

crypto/elliptic: remove mistakenly commited code

One of my own experiments ended up getting mistakenly commited when
        switching to Jacobian transformations.

R=rsc
CC=golang-dev
https://golang.org/cl/3473044
This commit is contained in:
Adam Langley 2010-12-08 15:01:53 -05:00
parent 5a8f2ba727
commit 3a5efdf230

View File

@ -309,21 +309,3 @@ func BenchmarkBaseMult(b *testing.B) {
p224.ScalarBaseMult(k.Bytes())
}
}
func TestMultiples(t *testing.T) {
p256 := P256()
x := p256.Gx
y := p256.Gy
Gz := new(big.Int).SetInt64(1)
z := Gz
for i := 1; i <= 16; i++ {
fmt.Printf("i: %d\n", i)
fmt.Printf(" %s\n %s\n %s\n", x.String(), y.String(), z.String())
if i == 1 {
x, y, z = p256.doubleJacobian(x, y, z)
} else {
x, y, z = p256.addJacobian(x, y, z, p256.Gx, p256.Gy, Gz)
}
}
}