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

Issue 6927044: openpgp: improve parser resilience & flexibility, add P...

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

Description

openpgp: improve parser resilience & flexibility, add PublicKey.BitLength() These are improvements I've made as necessary to develop Hockeypuck, an OpenPGP keyserver (https://launchpad.net/hockeypuck). The max armor line length was increased to 96 because some keyservers (SKS) will output armor with lines greater than 64 (the prior max). I've exposed packet.ReadEntity to support stream-parsing, useful for large SKS dump files. ReadKeyRing attempts to recover in the event of malformed data. Because many packet types are not yet supported, I added OpaquePacket to capture unsupported types for offline storage and later reparsing.

Patch Set 1 #

Patch Set 2 : diff -r 06723ccb4c19 https://code.google.com/p/go.crypto #

Total comments: 36

Patch Set 3 : Update per review feedback #

Patch Set 4 : +Added copyright comment to opaque.go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+179 lines, -6 lines) Patch
M openpgp/armor/armor.go View 1 1 chunk +1 line, -1 line 0 comments Download
M openpgp/keys.go View 1 2 2 chunks +8 lines, -3 lines 0 comments Download
A openpgp/packet/opaque.go View 1 2 3 1 chunk +144 lines, -0 lines 0 comments Download
M openpgp/packet/packet.go View 1 2 2 chunks +11 lines, -2 lines 0 comments Download
M openpgp/packet/public_key.go View 1 2 1 chunk +15 lines, -0 lines 0 comments Download

Messages

Total messages: 6
agl1
https://codereview.appspot.com/6927044/diff/2001/openpgp/keys.go File openpgp/keys.go (right): https://codereview.appspot.com/6927044/diff/2001/openpgp/keys.go#newcode209 openpgp/keys.go:209: // Skip unreadable badly-formatted keys comma after 'unreadable'. https://codereview.appspot.com/6927044/diff/2001/openpgp/packet/opaque.go ...
12 years, 3 months ago (2012-12-11 15:08:41 UTC) #1
cmars
Adam, Thanks for reviewing today. I've uploaded a patch with your recommended changes. Best, Casey ...
12 years, 3 months ago (2012-12-12 02:23:32 UTC) #2
cmars
Added copyright to new file opaque.go per contributor guidelines.
12 years, 3 months ago (2012-12-12 20:50:18 UTC) #3
agl1
*** Submitted as https://code.google.com/p/go/source/detail?r=040ebe98531e&repo=crypto *** openpgp: improve parser resilience & flexibility, add PublicKey.BitLength() These are ...
12 years, 3 months ago (2012-12-15 19:30:18 UTC) #4
agl1
I submitted this with trivial changes. One of which was to add a FIXME because ...
12 years, 3 months ago (2012-12-15 19:31:42 UTC) #5
remyoudompheng
11 years, 8 months ago (2013-07-21 19:50:55 UTC) #6
R=close
Sign in to reply to this message.

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