diff options
| author | Alex Gaynor <alex.gaynor@gmail.com> | 2018-08-02 02:13:52 -0400 | 
|---|---|---|
| committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2018-08-02 15:13:52 +0900 | 
| commit | f6ccb2ef6c5d787955c2b25d1d0b542152d8aaeb (patch) | |
| tree | f55b2c2a2df779d463547c4e2faf39c7eb1ef941 /src | |
| parent | 8d46eafc90793282fb007ed3dde51d761edcf595 (diff) | |
| download | cryptography-f6ccb2ef6c5d787955c2b25d1d0b542152d8aaeb.tar.gz cryptography-f6ccb2ef6c5d787955c2b25d1d0b542152d8aaeb.tar.bz2 cryptography-f6ccb2ef6c5d787955c2b25d1d0b542152d8aaeb.zip  | |
Refs #4375 -- integrate wycheproof AES CCM tests (#4379)
* Refs #4375 -- integrate wycheproof AES CCM tests
* Skip these tests if we don't have CCM support
Diffstat (limited to 'src')
| -rw-r--r-- | src/cryptography/hazmat/primitives/ciphers/aead.py | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptography/hazmat/primitives/ciphers/aead.py b/src/cryptography/hazmat/primitives/ciphers/aead.py index e5197653..16899d00 100644 --- a/src/cryptography/hazmat/primitives/ciphers/aead.py +++ b/src/cryptography/hazmat/primitives/ciphers/aead.py @@ -75,7 +75,7 @@ class AESCCM(object):          if not isinstance(tag_length, int):              raise TypeError("tag_length must be an integer") -        if tag_length not in (4, 6, 8, 12, 14, 16): +        if tag_length not in (4, 6, 8, 10, 12, 14, 16):              raise ValueError("Invalid tag_length")          self._tag_length = tag_length  | 
