]> Cypherpunks repositories - gostls13.git/commit
crypto/elliptic: add constant-time P224.
authorAdam Langley <agl@golang.org>
Thu, 19 Jan 2012 13:39:03 +0000 (08:39 -0500)
committerAdam Langley <agl@golang.org>
Thu, 19 Jan 2012 13:39:03 +0000 (08:39 -0500)
commit247799ce8a0867351b4570b2f62947ff10334ea8
tree506078e1605bf1da827fc9817338f11f55f39cdc
parentf2f0059307e3ff555858b2d51493187f467c17e2
crypto/elliptic: add constant-time P224.

(Sending to r because of the API change.)

This change alters the API for crypto/elliptic to permit different
implementations in the future. This will allow us to add faster,
constant-time implementations of the standard curves without any more
API changes.

As a demonstration, it also adds a constant-time implementation of
P224. Since it's only 32-bit, it's actually only about 40% the speed
of the generic code on a 64-bit system.

R=r, rsc
CC=golang-dev
https://golang.org/cl/5528088
doc/go1.tmpl
src/pkg/crypto/ecdsa/ecdsa.go
src/pkg/crypto/ecdsa/ecdsa_test.go
src/pkg/crypto/elliptic/Makefile
src/pkg/crypto/elliptic/elliptic.go
src/pkg/crypto/elliptic/elliptic_test.go
src/pkg/crypto/elliptic/p224.go [new file with mode: 0644]
src/pkg/crypto/elliptic/p224_test.go [new file with mode: 0644]
src/pkg/crypto/tls/key_agreement.go