]> Cypherpunks repositories - gostls13.git/commit
crypto/rsa: support > 3 primes.
authorAdam Langley <agl@golang.org>
Fri, 22 Apr 2011 19:33:41 +0000 (15:33 -0400)
committerAdam Langley <agl@golang.org>
Fri, 22 Apr 2011 19:33:41 +0000 (15:33 -0400)
commit555685e26cb0c83843724778510575b61c6bc91e
tree94b8eeb38cb757c9af7c9bfffba6d0a836fe6d10
parent781df132f9332d30e788057fd9037627ae798d0f
crypto/rsa: support > 3 primes.

With full multi-prime support we can support version 1 PKCS#1 private
keys. This means exporting all the members of rsa.PrivateKey, thus
making the API a little messy. However there has already been another
request to export this so it seems to be something that's needed.

Over time, rsa.GenerateMultiPrimeKey will replace rsa.GenerateKey, but
I need to work on the prime balance first because we're no longer
generating primes which are a multiples of 8 bits.

Fixes #987.

R=rsc
CC=golang-dev
https://golang.org/cl/4378046
src/pkg/crypto/openpgp/packet/private_key.go
src/pkg/crypto/rsa/rsa.go
src/pkg/crypto/rsa/rsa_test.go
src/pkg/crypto/tls/handshake_server_test.go
src/pkg/crypto/x509/x509.go
src/pkg/crypto/x509/x509_test.go