From f988a9ebc594bf1e5c996164befe69f1225dd564 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Mon, 21 Oct 2013 19:43:42 -0700 Subject: This is a frozenset these days --- cryptography/primitives/block/ciphers.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cryptography/primitives/block/ciphers.py b/cryptography/primitives/block/ciphers.py index 5d32772a..4143b89d 100644 --- a/cryptography/primitives/block/ciphers.py +++ b/cryptography/primitives/block/ciphers.py @@ -57,9 +57,7 @@ class Camellia(object): class TripleDES(object): name = "3DES" block_size = 64 - # TODO: is there a better way to represent the fact that the effective key - # size is 56 bits? - key_sizes = set([64, 128, 192]) + key_sizes = frozenset([64, 128, 192]) def __init__(self, key): super(TripleDES, self).__init__() -- cgit v1.2.3