Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(386)

Issue 4378046: code review 4378046: crypto/rsa: support > 3 primes. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years ago by agl1
Modified:
13 years ago
Reviewers:
CC:
rsc, golang-dev
Visibility:
Public.

Description

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 issue 987.

Patch Set 1 #

Patch Set 2 : diff -r f618e5e0991d https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r f618e5e0991d https://go.googlecode.com/hg/ #

Total comments: 1

Patch Set 4 : diff -r 4defb90e2567 https://go.googlecode.com/hg/ #

Patch Set 5 : diff -r 4defb90e2567 https://go.googlecode.com/hg/ #

Total comments: 2

Patch Set 6 : diff -r dcf76518ce87 https://go.googlecode.com/hg/ #

Patch Set 7 : diff -r dcf76518ce87 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+276 lines, -188 lines) Patch
M src/pkg/crypto/openpgp/packet/private_key.go View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download
M src/pkg/crypto/rsa/rsa.go View 1 2 3 4 5 8 chunks +126 lines, -164 lines 0 comments Download
M src/pkg/crypto/rsa/rsa_test.go View 1 2 3 5 chunks +27 lines, -9 lines 0 comments Download
M src/pkg/crypto/tls/handshake_server_test.go View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download
M src/pkg/crypto/x509/x509.go View 1 2 3 4 5 6 5 chunks +70 lines, -7 lines 0 comments Download
M src/pkg/crypto/x509/x509_test.go View 1 2 3 2 chunks +45 lines, -4 lines 0 comments Download

Messages

Total messages: 7
agl1
13 years ago (2011-04-08 18:18:16 UTC) #1
rsc
I am starting to think that our insistence on not having Init was a bad ...
13 years ago (2011-04-08 19:02:45 UTC) #2
agl1
I'm very happy to get rid of the mutex. I've also split the precomputed values ...
13 years ago (2011-04-22 15:26:02 UTC) #3
rsc
LGTM http://codereview.appspot.com/4378046/diff/11001/src/pkg/crypto/rsa/rsa.go File src/pkg/crypto/rsa/rsa.go (right): http://codereview.appspot.com/4378046/diff/11001/src/pkg/crypto/rsa/rsa.go#newcode108 src/pkg/crypto/rsa/rsa.go:108: // information that we mirror this. s/information/important/?
13 years ago (2011-04-22 18:43:14 UTC) #4
agl1
Hello rsc (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
13 years ago (2011-04-22 19:33:40 UTC) #5
agl1
*** Submitted as http://code.google.com/p/go/source/detail?r=351ee4100fc6 *** crypto/rsa: support > 3 primes. With full multi-prime support we ...
13 years ago (2011-04-22 19:34:08 UTC) #6
rsc
13 years ago (2011-04-22 19:41:25 UTC) #7
broke build

On Fri, Apr 22, 2011 at 15:34,  <agl@golang.org> wrote:
> *** Submitted as
> http://code.google.com/p/go/source/detail?r=351ee4100fc6 ***
>
> 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 issue 987.
>
> R=rsc
> CC=golang-dev
> http://codereview.appspot.com/4378046
>
>
>
> http://codereview.appspot.com/4378046/diff/11001/src/pkg/crypto/rsa/rsa.go
> File src/pkg/crypto/rsa/rsa.go (right):
>
>
http://codereview.appspot.com/4378046/diff/11001/src/pkg/crypto/rsa/rsa.go#ne...
> src/pkg/crypto/rsa/rsa.go:108: // information that we mirror this.
> On 2011/04/22 18:43:14, rsc wrote:
>>
>> s/information/important/?
>
> Done.
>
> http://codereview.appspot.com/4378046/
>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b