From f6ccb2ef6c5d787955c2b25d1d0b542152d8aaeb Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Thu, 2 Aug 2018 02:13:52 -0400 Subject: 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 --- src/cryptography/hazmat/primitives/ciphers/aead.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3