diff options
| author | Donald Stufft <donald@stufft.io> | 2013-08-10 18:29:02 -0400 |
|---|---|---|
| committer | Donald Stufft <donald@stufft.io> | 2013-08-10 18:29:02 -0400 |
| commit | 32c51a3fe2f52eb797cdfcd300757dbf7e191f11 (patch) | |
| tree | 1cd1b4871912c925d0c67cb590eb82f56fdf46ed /cryptography | |
| parent | 605b225ff5d4f711b29b57e4b6f0ac4611ec0409 (diff) | |
| download | cryptography-32c51a3fe2f52eb797cdfcd300757dbf7e191f11.tar.gz cryptography-32c51a3fe2f52eb797cdfcd300757dbf7e191f11.tar.bz2 cryptography-32c51a3fe2f52eb797cdfcd300757dbf7e191f11.zip | |
Small note about the purpose
Diffstat (limited to 'cryptography')
| -rw-r--r-- | cryptography/primitives/block/ciphers.py | 1 |
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 |
