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

Issue 125030043: code review 125030043: go.crypto/openpgp: return signature error rather than u... (Closed)

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

Description

go.crypto/openpgp: return signature error rather than unknown issuer. In the event that a detached signature fails to verify, the code would continue trying to find other keys with the same key ID and eventually conclude that the signature was issued by someone unknown (ErrUnknownIssuer). With this change, the signature verification error would be returned instead. (Technically the last error if several keys had a matching key id and neither verified.) Fixes issue 8509.

Patch Set 1 #

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

Patch Set 3 : diff -r 41cd4647fccc72b0b79ef1bd1fe6735e718257cd https://code.google.com/p/go.crypto #

Patch Set 4 : diff -r 41cd4647fccc72b0b79ef1bd1fe6735e718257cd https://code.google.com/p/go.crypto #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -1 line) Patch
M openpgp/read.go View 1 1 chunk +4 lines, -1 line 0 comments Download
M openpgp/read_test.go View 1 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 3
agl1
Hello bradfitz@golang.org (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go.crypto
10 years, 7 months ago (2014-08-11 20:18:08 UTC) #1
bradfitz
LGTM On Mon, Aug 11, 2014 at 1:18 PM, <agl@golang.org> wrote: > Reviewers: bradfitz, > ...
10 years, 7 months ago (2014-08-11 20:32:38 UTC) #2
agl1
10 years, 7 months ago (2014-08-11 22:42:03 UTC) #3
*** Submitted as
https://code.google.com/p/go/source/detail?r=d1adf2fbd405&repo=crypto ***

go.crypto/openpgp: return signature error rather than unknown issuer.

In the event that a detached signature fails to verify, the code would
continue trying to find other keys with the same key ID and eventually
conclude that the signature was issued by someone unknown
(ErrUnknownIssuer).

With this change, the signature verification error would be returned
instead. (Technically the last error if several keys had a matching key
id and neither verified.)

Fixes issue 8509.

LGTM=bradfitz
R=bradfitz
CC=golang-codereviews
https://codereview.appspot.com/125030043
Sign in to reply to this message.

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