Add AES block sizes to PGPPacket._cipher_block_size
authorW. Trevor King <wking@tremily.us>
Fri, 20 Dec 2013 18:45:47 +0000 (10:45 -0800)
committerW. Trevor King <wking@tremily.us>
Fri, 20 Dec 2013 19:46:31 +0000 (11:46 -0800)
From the AES spec [1]:

  This standard specifies the Rijndael algorithm (...), a symmetric
  block cipher that can process data blocks of 128 bits, using cipher
  keys with lengths of 128, 192, and 256 bits.

[1]: http://csrc.nist.gov/publications/fips/fips197/fips-197.{ps,pdf}

gpg-migrate.py

index 27054a00c363274215db7265bd7377a08aa150c2..0c7f3366672855db08f58fc4c6746a754e7132fc 100755 (executable)
@@ -100,6 +100,9 @@ class PGPPacket (dict):
         }
 
     _cipher_block_size = {  # in bits
+        'aes with 128-bit key': 128,
+        'aes with 192-bit key': 128,
+        'aes with 256-bit key': 128,
         }
 
     _compression_algorithms = {