summaryrefslogtreecommitdiff
path: root/src/pkg/crypto/rsa/rsa_test.go
diff options
context:
space:
mode:
authorAdam Langley <agl@golang.org>2009-11-05 16:44:02 -0800
committerAdam Langley <agl@golang.org>2009-11-05 16:44:02 -0800
commitd9a2726adce31cd6d1c23f33949a07537b16a0a9 (patch)
tree5e697a8aaec75d7a2d8c5ed1ebe5941a01bb4e89 /src/pkg/crypto/rsa/rsa_test.go
parentb0af6c8cdc22eb04696e0008fe02313e5b380274 (diff)
downloadgolang-d9a2726adce31cd6d1c23f33949a07537b16a0a9.tar.gz
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
Diffstat (limited to 'src/pkg/crypto/rsa/rsa_test.go')
-rw-r--r--src/pkg/crypto/rsa/rsa_test.go8
1 files changed, 7 insertions, 1 deletions
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;