Check the SHA-1 checksum in PGPPacket._parse_generic_secret_key_packet
authorW. Trevor King <wking@tremily.us>
Sat, 21 Dec 2013 03:07:30 +0000 (19:07 -0800)
committerW. Trevor King <wking@tremily.us>
Mon, 23 Dec 2013 02:32:15 +0000 (18:32 -0800)
commita39cd92fd970ea0bbd2becca27c409c110c5a46c
tree37a0c8c706c068c91c2e21852f3a7001cc02b32e
parent9a03857e0eee9568be70dd7e18dea0aeddb17a01
Check the SHA-1 checksum in PGPPacket._parse_generic_secret_key_packet

The previous commit added checks when the string-to-key usage was zero
or 255, but I'd forgotten about the case where the string-to-key usage
was 254.  This commit add handling for that case, where a SHA-1 digest
is used instead of the mod-65536 sum.  See the previous commit message
for RFC 4880 references.
gpg-migrate.py