aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDonald Stufft <donald@stufft.io>2013-08-10 18:29:02 -0400
committerDonald Stufft <donald@stufft.io>2013-08-10 18:29:02 -0400
commit32c51a3fe2f52eb797cdfcd300757dbf7e191f11 (patch)
tree1cd1b4871912c925d0c67cb590eb82f56fdf46ed
parent605b225ff5d4f711b29b57e4b6f0ac4611ec0409 (diff)
downloadcryptography-32c51a3fe2f52eb797cdfcd300757dbf7e191f11.tar.gz
cryptography-32c51a3fe2f52eb797cdfcd300757dbf7e191f11.tar.bz2
cryptography-32c51a3fe2f52eb797cdfcd300757dbf7e191f11.zip
Small note about the purpose
-rw-r--r--cryptography/primitives/block/ciphers.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/cryptography/primitives/block/ciphers.py b/cryptography/primitives/block/ciphers.py
index 26f9a8e5..17e7765a 100644
--- a/cryptography/primitives/block/ciphers.py
+++ b/cryptography/primitives/block/ciphers.py
@@ -20,6 +20,7 @@ class AES(object):
super(AES, self).__init__()
self.key = key
+ # Verify that the key size matches the expected key size
if self.key_size not in self.key_sizes:
raise ValueError("Invalid key size (%s) for %s".format(
self.key_size, self.name