]> Cypherpunks repositories - gostls13.git/commit
crypto/elliptic: add constant-time, P-256 implementation.
authorAdam Langley <agl@golang.org>
Thu, 27 Jun 2013 17:31:05 +0000 (13:31 -0400)
committerAdam Langley <agl@golang.org>
Thu, 27 Jun 2013 17:31:05 +0000 (13:31 -0400)
commitd2a19e9fd1c4f2c4941d86e860be0cee8c418170
tree12493229628e8378799b88d9673d3c74b4b04b45
parent7ebb187e8e5e588d8c594213ff5187917c4abb20
crypto/elliptic: add constant-time, P-256 implementation.

On my 64-bit machine, despite being 32-bit code, fixed-base
multiplications are 7.1x faster and arbitary multiplications are 2.6x
faster.

It is difficult to review this change. However, the code is essentially
the same as code that has been open-sourced in Chromium. There it has
been successfully performing P-256 operations for several months on
many machines so the arithmetic of the code should be sound.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/10551044
src/pkg/crypto/elliptic/elliptic.go
src/pkg/crypto/elliptic/elliptic_test.go
src/pkg/crypto/elliptic/p256.go [new file with mode: 0644]