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

Issue 4639049: code review 4639049: crypto/openpgp: add ElGamal support. (Closed)

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

Description

crypto/openpgp: add ElGamal support.

Patch Set 1 #

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

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

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

Total comments: 7

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+519 lines, -135 lines) Patch
M src/pkg/Makefile View 1 1 chunk +1 line, -0 lines 0 comments Download
A src/pkg/crypto/openpgp/elgamal/Makefile View 1 1 chunk +11 lines, -0 lines 0 comments Download
A src/pkg/crypto/openpgp/elgamal/elgamal.go View 1 2 3 4 1 chunk +122 lines, -0 lines 0 comments Download
A src/pkg/crypto/openpgp/elgamal/elgamal_test.go View 1 1 chunk +49 lines, -0 lines 0 comments Download
M src/pkg/crypto/openpgp/packet/encrypted_key.go View 1 2 7 chunks +61 lines, -10 lines 0 comments Download
M src/pkg/crypto/openpgp/packet/encrypted_key_test.go View 1 3 chunks +12 lines, -5 lines 0 comments Download
M src/pkg/crypto/openpgp/packet/packet.go View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/crypto/openpgp/packet/private_key.go View 1 3 chunks +22 lines, -0 lines 0 comments Download
M src/pkg/crypto/openpgp/packet/private_key_test.go View 1 1 chunk +38 lines, -18 lines 0 comments Download
M src/pkg/crypto/openpgp/packet/public_key.go View 1 7 chunks +41 lines, -2 lines 0 comments Download
M src/pkg/crypto/openpgp/read.go View 1 3 chunks +5 lines, -3 lines 0 comments Download
M src/pkg/crypto/openpgp/read_test.go View 1 2 chunks +61 lines, -35 lines 0 comments Download
M src/pkg/crypto/openpgp/write_test.go View 1 1 chunk +94 lines, -60 lines 0 comments Download

Messages

Total messages: 4
agl1
Hello bradfitz@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 9 months ago (2011-06-19 14:43:44 UTC) #1
bradfitz
LGTM But one confusing comment... http://codereview.appspot.com/4639049/diff/7001/src/pkg/crypto/openpgp/elgamal/elgamal.go File src/pkg/crypto/openpgp/elgamal/elgamal.go (right): http://codereview.appspot.com/4639049/diff/7001/src/pkg/crypto/openpgp/elgamal/elgamal.go#newcode117 src/pkg/crypto/openpgp/elgamal/elgamal.go:117: // In tests, the ...
13 years, 9 months ago (2011-06-19 19:42:53 UTC) #2
r
LGTM nice http://codereview.appspot.com/4639049/diff/7001/src/pkg/crypto/openpgp/elgamal/elgamal.go File src/pkg/crypto/openpgp/elgamal/elgamal.go (right): http://codereview.appspot.com/4639049/diff/7001/src/pkg/crypto/openpgp/elgamal/elgamal.go#newcode10 src/pkg/crypto/openpgp/elgamal/elgamal.go:10: // This form of ElGamal embeds PKCS#1 ...
13 years, 9 months ago (2011-06-19 22:02:38 UTC) #3
agl1
13 years, 9 months ago (2011-06-22 01:01:02 UTC) #4
*** Submitted as http://code.google.com/p/go/source/detail?r=a30da34972bf ***

crypto/openpgp: add ElGamal support.

R=bradfitz, r
CC=golang-dev
http://codereview.appspot.com/4639049

http://codereview.appspot.com/4639049/diff/7001/src/pkg/crypto/openpgp/elgama...
File src/pkg/crypto/openpgp/elgamal/elgamal.go (right):

http://codereview.appspot.com/4639049/diff/7001/src/pkg/crypto/openpgp/elgama...
src/pkg/crypto/openpgp/elgamal/elgamal.go:10: // This form of ElGamal embeds
PKCS#1 v1.5 padding which may make it unsuitable
On 2011/06/19 22:02:38, r wrote:
> s/padding/padding,/

Done.

http://codereview.appspot.com/4639049/diff/7001/src/pkg/crypto/openpgp/elgama...
src/pkg/crypto/openpgp/elgamal/elgamal.go:70: // returns the plaintext of the
message. An error can only result if the
On 2011/06/19 22:02:38, r wrote:
> s/only result/result only/

Done.

http://codereview.appspot.com/4639049/diff/7001/src/pkg/crypto/openpgp/elgama...
src/pkg/crypto/openpgp/elgamal/elgamal.go:117: // In tests, the PRNG may return
all zeros so we do
On 2011/06/19 19:42:53, bradfitz wrote:
> I don't quite follow this comment. Is the PRNG broken, does this only affect
> tests, ... ? 

The idea is that the test might pass in a PRNG that always returns zeros. Thus,
looping waiting for a non-zero value will hang the test.

I haven't done that in these tests, however, so I've just removed this bit.
Sign in to reply to this message.

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