diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2013-11-07 16:20:34 -0800 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2013-11-07 16:20:34 -0800 |
commit | 64e09322e3cbda39d673f985f495178209ff12f5 (patch) | |
tree | 80b14fa2b9143cb8e5be290ab762a609cf388bb5 /tests/hazmat/primitives/test_padding.py | |
parent | 635b542ded9ede772a2ca907e8bb5349ded333bd (diff) | |
download | cryptography-64e09322e3cbda39d673f985f495178209ff12f5.tar.gz cryptography-64e09322e3cbda39d673f985f495178209ff12f5.tar.bz2 cryptography-64e09322e3cbda39d673f985f495178209ff12f5.zip |
Fixed a bug in padding, and also made it more constant time
Diffstat (limited to 'tests/hazmat/primitives/test_padding.py')
-rw-r--r-- | tests/hazmat/primitives/test_padding.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/hazmat/primitives/test_padding.py b/tests/hazmat/primitives/test_padding.py index 3cefafaf..91d58439 100644 --- a/tests/hazmat/primitives/test_padding.py +++ b/tests/hazmat/primitives/test_padding.py @@ -29,6 +29,7 @@ class TestPKCS7(object): (128, b"1111111111111111"), (128, b"111111111111111\x06"), (128, b""), + (128, b"\x06" * 6), ]) def test_invalid_padding(self, size, padded): unpadder = padding.PKCS7(size).unpadder() |