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

Issue 4173043: code review 4173043: crypto/openpgp/packet: add remainder of packet types. (Closed)

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

Description

crypto/openpgp/packet: add remainder of packet types. (The unittest for Signature may seem a little small, but it's tested by the higher level code.)

Patch Set 1 #

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

Total comments: 6

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+692 lines, -0 lines) Patch
A src/pkg/crypto/openpgp/packet/encrypted_key.go View 1 1 chunk +66 lines, -0 lines 0 comments Download
A src/pkg/crypto/openpgp/packet/encrypted_key_test.go View 1 1 chunk +67 lines, -0 lines 0 comments Download
A src/pkg/crypto/openpgp/packet/reader.go View 1 1 chunk +63 lines, -0 lines 0 comments Download
A src/pkg/crypto/openpgp/packet/signature.go View 1 2 1 chunk +468 lines, -0 lines 0 comments Download
A src/pkg/crypto/openpgp/packet/signature_test.go View 1 1 chunk +28 lines, -0 lines 0 comments Download

Messages

Total messages: 4
agl1
14 years, 3 months ago (2011-02-10 14:01:01 UTC) #1
bradfitz
http://codereview.appspot.com/4173043/diff/2001/src/pkg/crypto/openpgp/packet/reader.go File src/pkg/crypto/openpgp/packet/reader.go (right): http://codereview.appspot.com/4173043/diff/2001/src/pkg/crypto/openpgp/packet/reader.go#newcode49 src/pkg/crypto/openpgp/packet/reader.go:49: func (r *Reader) Push(reader io.Reader) { Somewhat weird to ...
14 years, 3 months ago (2011-02-10 18:26:48 UTC) #2
agl1
Hello bradfitzgo (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
14 years, 3 months ago (2011-02-11 00:59:11 UTC) #3
agl1
14 years, 3 months ago (2011-02-11 00:59:23 UTC) #4
*** Submitted as http://code.google.com/p/go/source/detail?r=4decd02fda70 ***

crypto/openpgp/packet: add remainder of packet types.

(The unittest for Signature may seem a little small, but it's tested by
the higher level code.)

R=bradfitzgo
CC=golang-dev
http://codereview.appspot.com/4173043

http://codereview.appspot.com/4173043/diff/2001/src/pkg/crypto/openpgp/packet...
File src/pkg/crypto/openpgp/packet/reader.go (right):

http://codereview.appspot.com/4173043/diff/2001/src/pkg/crypto/openpgp/packet...
src/pkg/crypto/openpgp/packet/reader.go:49: func (r *Reader) Push(reader
io.Reader) {
On 2011/02/10 18:26:48, bradfitzgo wrote:
> Seems more appropriate to add this to io.MultiReader, but that returns an
> interface at the moment.  I suppose the internal multiReader struct could be
> made public.  I think I recall seeing such a patch on the mailing list awhile
> back.

This is somewhat different from a multi-reader in that new Readers can be added
during the read. I can't think of a nice way to merge them.

http://codereview.appspot.com/4173043/diff/2001/src/pkg/crypto/openpgp/packet...
File src/pkg/crypto/openpgp/packet/signature.go (right):

http://codereview.appspot.com/4173043/diff/2001/src/pkg/crypto/openpgp/packet...
src/pkg/crypto/openpgp/packet/signature.go:396: // the message to be signed and
will be mutated by this function.
On 2011/02/10 18:26:48, bradfitzgo wrote:
> Maybe s/the message/the hash of the message/ ?

Done.

http://codereview.appspot.com/4173043/diff/2001/src/pkg/crypto/openpgp/packet...
src/pkg/crypto/openpgp/packet/signature.go:411: func (sig *Signature)
Serialise(w io.Writer) (err os.Error) {
On 2011/02/10 18:26:48, bradfitzgo wrote:
> Does Go use British or American spellings?  I thought the latter?

z-ifed.
Sign in to reply to this message.

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