]> Cypherpunks repositories - gostls13.git/commit
crypto/openpgp/packet: fix private key checksum
authorAdam Langley <agl@golang.org>
Wed, 23 Nov 2011 14:44:29 +0000 (09:44 -0500)
committerAdam Langley <agl@golang.org>
Wed, 23 Nov 2011 14:44:29 +0000 (09:44 -0500)
commit8281f6bd1b02b52c8233fbcc6b54b697896d0155
tree2024e5741d2376d75fe507215ecc9799908a4115
parentf2c858749a7d5c50c85fad64e7bba2c34ecae3e9
crypto/openpgp/packet: fix private key checksum

I misinterpreted http://tools.ietf.org/html/rfc4880#section-5.5.3
and implemented the sum of 16-bit values, rather than the 16-bit sum
of 8-bit values.

Thanks to Szabolcs Nagy for pointing it out.

R=bradfitz, r, rsc
CC=golang-dev
https://golang.org/cl/5372091
src/pkg/crypto/openpgp/packet/private_key.go