From d01c20fb29dc3a6ba53accd3bd561c05715f62c9 Mon Sep 17 00:00:00 2001 From: Ehren Kret Date: Sat, 28 Nov 2015 02:16:15 -0800 Subject: Add support for 160 bit ARC4 keys --- src/cryptography/hazmat/primitives/ciphers/algorithms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cryptography/hazmat/primitives/ciphers') diff --git a/src/cryptography/hazmat/primitives/ciphers/algorithms.py b/src/cryptography/hazmat/primitives/ciphers/algorithms.py index b71dddbb..c193f797 100644 --- a/src/cryptography/hazmat/primitives/ciphers/algorithms.py +++ b/src/cryptography/hazmat/primitives/ciphers/algorithms.py @@ -101,7 +101,7 @@ class CAST5(object): @utils.register_interface(CipherAlgorithm) class ARC4(object): name = "RC4" - key_sizes = frozenset([40, 56, 64, 80, 128, 192, 256]) + key_sizes = frozenset([40, 56, 64, 80, 128, 160, 192, 256]) def __init__(self, key): self.key = _verify_key_size(self, key) -- cgit v1.2.3