]> Cypherpunks repositories - gostls13.git/commit
crypto/elliptic: explicitly handle P+P, ∞+P and P+∞
authorAdam Langley <agl@golang.org>
Fri, 3 Aug 2012 19:42:14 +0000 (15:42 -0400)
committerAdam Langley <agl@golang.org>
Fri, 3 Aug 2012 19:42:14 +0000 (15:42 -0400)
commit728f19131919734e473e3de425abb966b45b13f8
tree0f581ecc5d9df7ecd0973e58d98a4aee6ffea39a
parent3f34248a7712e451b4217aa135e9236e93ece964
crypto/elliptic: explicitly handle P+P, ∞+P and P+∞

These aren't needed for scalar multiplication, but since we export a
generic Add function we should handle it.

This change also corrects two bugs in p224Contract that it turned up.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6458076
src/pkg/crypto/ecdsa/ecdsa.go
src/pkg/crypto/elliptic/elliptic.go
src/pkg/crypto/elliptic/elliptic_test.go
src/pkg/crypto/elliptic/p224.go