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

Issue 4156044: code review 4156044: crypto/openpgp/packet: four more packet types. (Closed)

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

Description

crypto/openpgp/packet: four more packet types.

Patch Set 1 #

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

Total comments: 8

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+550 lines, -0 lines) Patch
A src/pkg/crypto/openpgp/packet/literal.go View 1 2 1 chunk +53 lines, -0 lines 0 comments Download
A src/pkg/crypto/openpgp/packet/one_pass_signature.go View 1 2 1 chunk +49 lines, -0 lines 0 comments Download
A src/pkg/crypto/openpgp/packet/symmetric_key_encrypted.go View 1 1 chunk +102 lines, -0 lines 0 comments Download
A src/pkg/crypto/openpgp/packet/symmetric_key_encrypted_test.go View 1 1 chunk +62 lines, -0 lines 0 comments Download
A src/pkg/crypto/openpgp/packet/symmetrically_encrypted.go View 1 1 chunk +206 lines, -0 lines 0 comments Download
A src/pkg/crypto/openpgp/packet/symmetrically_encrypted_test.go View 1 1 chunk +78 lines, -0 lines 0 comments Download

Messages

Total messages: 4
agl1
14 years, 1 month ago (2011-02-09 13:35:06 UTC) #1
bradfitz
LGTM minor comments only http://codereview.appspot.com/4156044/diff/2001/src/pkg/crypto/openpgp/packet/literal.go File src/pkg/crypto/openpgp/packet/literal.go (right): http://codereview.appspot.com/4156044/diff/2001/src/pkg/crypto/openpgp/packet/literal.go#newcode13 src/pkg/crypto/openpgp/packet/literal.go:13: type LiteralData struct { Per ...
14 years, 1 month ago (2011-02-09 16:07:38 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, 1 month ago (2011-02-10 12:56:29 UTC) #3
agl1
14 years, 1 month ago (2011-02-10 12:56:35 UTC) #4
*** Submitted as http://code.google.com/p/go/source/detail?r=1ac7cdf2a243 ***

crypto/openpgp/packet: four more packet types.

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

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

http://codereview.appspot.com/4156044/diff/2001/src/pkg/crypto/openpgp/packet...
src/pkg/crypto/openpgp/packet/literal.go:13: type LiteralData struct {
On 2011/02/09 16:07:38, bradfitzgo wrote:
> Per the spec, you should add a:
> 
> func (l *LiteralData) ForEyesOnly() bool {
>   return l.FileName == "_CONSOLE"
> }
> 
> :-)

Done.

http://codereview.appspot.com/4156044/diff/2001/src/pkg/crypto/openpgp/packet...
src/pkg/crypto/openpgp/packet/literal.go:16: CreationTime uint32
On 2011/02/09 16:07:38, bradfitzgo wrote:
> I assume unix epoch time?
> 
> Spec is vague but what else could it be.  Might want to note that 0 means
> undefined, rather than 1970.
> 
> Also, CreationTime isn't necessarily a correct name.  The spec says
modification
> time OR creation time OR zero.  Might just want to call it "Time" and add a
big
> comment.

Done.

http://codereview.appspot.com/4156044/diff/2001/src/pkg/crypto/openpgp/packet...
src/pkg/crypto/openpgp/packet/literal.go:43: l.CreationTime = uint32(buf[0])<<24
| uint32(buf[1])<<16 | uint32(buf[2])<<8 | uint32(buf[3])
On 2011/02/09 16:07:38, bradfitzgo wrote:
> encoding/binary here?

Done.

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

http://codereview.appspot.com/4156044/diff/2001/src/pkg/crypto/openpgp/packet...
src/pkg/crypto/openpgp/packet/one_pass_signature.go:35: err =
error.UnsupportedError("one-pass-signature packet version")
On 2011/02/09 16:07:38, bradfitzgo wrote:
> include stringified buf[0] in error text?

Done.
Sign in to reply to this message.

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