From 6b59fd3bc623199824388cd2036ae67d2e58c7a9 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sat, 21 Dec 2013 10:11:53 -0800 Subject: [PATCH] Add cast5 key size (128 bits) to PGPPacket._key_size From RFC 4880 [1] CAST5 (128 bit key, as per [RFC2144]) From RFC 2144 [2]: The CAST-128 encryption algorithm has been designed to allow a key size that can vary from 40 bits to 128 bits, in 8-bit increments (that is, the allowable key sizes are 40, 48, 56, 64, ..., 112, 120, and 128 bits. [1]: http://tools.ietf.org/search/rfc4880#section-9.2 [2]: http://tools.ietf.org/search/rfc2144#section-2.5 --- gpg-migrate.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gpg-migrate.py b/gpg-migrate.py index d8ae5ac..844e21c 100755 --- a/gpg-migrate.py +++ b/gpg-migrate.py @@ -127,6 +127,7 @@ class PGPPacket (dict): 'aes with 128-bit key': 128, 'aes with 192-bit key': 192, 'aes with 256-bit key': 256, + 'cast5': 128, } _compression_algorithms = { -- 2.26.2