Add salted string-to-key support to PGPPacket._string_to_key
authorW. Trevor King <wking@tremily.us>
Sat, 21 Dec 2013 18:30:44 +0000 (10:30 -0800)
committerW. Trevor King <wking@tremily.us>
Mon, 23 Dec 2013 21:41:05 +0000 (13:41 -0800)
commitcc8f9224e89e64b3fe00a927738d8d9282b5d203
tree1e87107c79f09630850fb5bc055e498671072d6e
parent152f5fc0e8b216b2ea0bd96438ad936894c8422a
Add salted string-to-key support to PGPPacket._string_to_key

From RFC 4880 [1]:

  Salted S2K is exactly like Simple S2K, except that the input to the
  hash function(s) consists of the 8 octets of salt from the S2K
  specifier, followed by the passphrase.

[1]: http://tools.ietf.org/search/rfc4880#section-3.7.1.2
gpg-migrate.py