From 32e12df1706c2d3511f0db3004b100387025383f Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Fri, 20 Dec 2013 10:45:47 -0800 Subject: [PATCH] Add AES block sizes to PGPPacket._cipher_block_size 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gpg-migrate.py b/gpg-migrate.py index 27054a0..0c7f336 100755 --- a/gpg-migrate.py +++ b/gpg-migrate.py @@ -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 = { -- 2.26.2