]> Cypherpunks repositories - gostls13.git/commitdiff
crypto/elliptic: remove mistakenly commited code
authorAdam Langley <agl@golang.org>
Wed, 8 Dec 2010 20:01:53 +0000 (15:01 -0500)
committerAdam Langley <agl@golang.org>
Wed, 8 Dec 2010 20:01:53 +0000 (15:01 -0500)
        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

src/pkg/crypto/elliptic/elliptic_test.go

index 25c2071ca382b7e08430cdfae8c78cfe6f54bc9a..3707c429cbd841a9921392c31fcb9277afec6024 100644 (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)
-               }
-       }
-}