diff options
| author | Adam Langley <agl@golang.org> | 2010-03-08 09:25:24 -0500 |
|---|---|---|
| committer | Adam Langley <agl@golang.org> | 2010-03-08 09:25:24 -0500 |
| commit | 905e1d1f574033257937eeb8f7f85e7149b534f8 (patch) | |
| tree | 8d692da3bf12cef2c3b12927c56797e32b050bb2 /src/pkg/crypto/rsa/rsa_test.go | |
| parent | 7efcbf64a60884378b998e40cce3a8e64c25a82e (diff) | |
| download | golang-905e1d1f574033257937eeb8f7f85e7149b534f8.tar.gz | |
crypto/rsa: don't use safe primes.
Previously we would require safe primes for our RSA key generation.
Since this took rather a long time, this removes the requirement that
the primes be safe.
OpenSSL doesn't use safe primes for RSA key generation either
(openssl-0.9.8l/crypto/rsa/rsa_gen.c:122)
Fixes issue 649.
R=rsc
CC=golang-dev
http://codereview.appspot.com/253041
Diffstat (limited to 'src/pkg/crypto/rsa/rsa_test.go')
| -rw-r--r-- | src/pkg/crypto/rsa/rsa_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/crypto/rsa/rsa_test.go b/src/pkg/crypto/rsa/rsa_test.go index 21acf6ed6..172173900 100644 --- a/src/pkg/crypto/rsa/rsa_test.go +++ b/src/pkg/crypto/rsa/rsa_test.go @@ -18,7 +18,7 @@ func TestKeyGeneration(t *testing.T) { t.Errorf("failed to open /dev/urandom") } - priv, err := GenerateKey(urandom, 32) + priv, err := GenerateKey(urandom, 1024) if err != nil { t.Errorf("failed to generate key") } |
