From d9a2726adce31cd6d1c23f33949a07537b16a0a9 Mon Sep 17 00:00:00 2001 From: Adam Langley Date: Thu, 5 Nov 2009 16:44:02 -0800 Subject: crypto/tls (part 5/5) Make RSA and X509 build by using big. (This involves commenting out key generation for now since I haven't written Miller-Rabin in big yet.) Add entries to the Makefile. R=rsc CC=go-dev http://go/go-review/1022005 --- src/pkg/crypto/rsa/rsa_test.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/pkg/crypto/rsa/rsa_test.go') diff --git a/src/pkg/crypto/rsa/rsa_test.go b/src/pkg/crypto/rsa/rsa_test.go index 3bdfc66a7..7070a8ba8 100644 --- a/src/pkg/crypto/rsa/rsa_test.go +++ b/src/pkg/crypto/rsa/rsa_test.go @@ -5,13 +5,17 @@ package rsa import ( + "big"; "bytes"; "crypto/sha1"; - big "gmp"; "os"; "testing"; ) +/* + +TODO(agl): Enable once big implements ProbablyPrime. + func TestKeyGeneration(t *testing.T) { urandom, err := os.Open("/dev/urandom", os.O_RDONLY, 0); if err != nil { @@ -42,6 +46,8 @@ func TestKeyGeneration(t *testing.T) { } } +*/ + type testEncryptOAEPMessage struct { in []byte; seed []byte; -- cgit v1.2.3