]> Cypherpunks repositories - gostls13.git/commit
crypto/rsa: fix decryption benchmark.
authorAdam Langley <agl@golang.org>
Thu, 11 Oct 2012 22:25:23 +0000 (18:25 -0400)
committerAdam Langley <agl@golang.org>
Thu, 11 Oct 2012 22:25:23 +0000 (18:25 -0400)
commit3acce59b93305eac1348d8ed8034310b6b01d2a3
tree9799f2411013cf53a9d8a6b7c78a05f5c444aa47
parenta14f87ca81682ffd0134bf25e32b874dbd1d0757
crypto/rsa: fix decryption benchmark.

I was an idiot and was thinking that a small base didn't matter
because the exponentiation would quickly make the number the same size
as the modulus. But, of course, the small base continues to make
multiplications unrealistically cheap throughout the computation.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/6649048
src/pkg/crypto/rsa/rsa_test.go