Add twofish block size to PGPPacket._cipher_block_size
authorW. Trevor King <wking@tremily.us>
Sun, 22 Dec 2013 19:49:30 +0000 (11:49 -0800)
committerW. Trevor King <wking@tremily.us>
Mon, 23 Dec 2013 21:41:06 +0000 (13:41 -0800)
From RFC 4880 [1]:

  The AES and Twofish have a block size of 16 octets.

[1]: http://tools.ietf.org/search/rfc4880#section-13.9

gpg-migrate.py

index 1dba8981414bd3ed3768638efd06dfc8afa56e83..04af59759230a2fad3253080b615db48a621f2d1 100755 (executable)
@@ -112,6 +112,7 @@ class PGPPacket (dict):
         'aes with 192-bit key': 128,
         'aes with 256-bit key': 128,
         'cast5': 64,
         'aes with 192-bit key': 128,
         'aes with 256-bit key': 128,
         'cast5': 64,
+        'twofish': 128,
         }
 
     _crypto_module = {
         }
 
     _crypto_module = {