aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/crypto/openpgp/write_test.go
diff options
context:
space:
mode:
authorAdam Langley <agl@golang.org>2012-01-09 16:57:51 -0500
committerAdam Langley <agl@golang.org>2012-01-09 16:57:51 -0500
commitf9427364951a1e4b2ef6ad7d0ec9a6dfbb2dee54 (patch)
tree860d027cda5873e8ab9c10dd4ae15e0d49c17340 /src/pkg/crypto/openpgp/write_test.go
parentf5d024a74695510fcb0890807849ec95253a56cd (diff)
downloadgo-f9427364951a1e4b2ef6ad7d0ec9a6dfbb2dee54.tar.xz
crypto/openpgp: truncate hashes before checking DSA signatures.
I didn't believe that OpenPGP allowed > SHA-1 with DSA, but it does and so we need to perform hash truncation. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5510044
Diffstat (limited to 'src/pkg/crypto/openpgp/write_test.go')
-rw-r--r--src/pkg/crypto/openpgp/write_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/crypto/openpgp/write_test.go b/src/pkg/crypto/openpgp/write_test.go
index 02fa5b75bf..7df02e7bd1 100644
--- a/src/pkg/crypto/openpgp/write_test.go
+++ b/src/pkg/crypto/openpgp/write_test.go
@@ -222,7 +222,7 @@ func TestEncryption(t *testing.T) {
if test.isSigned {
if md.SignatureError != nil {
- t.Errorf("#%d: signature error: %s", i, err)
+ t.Errorf("#%d: signature error: %s", i, md.SignatureError)
}
if md.Signature == nil {
t.Error("signature missing")