diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2013-10-29 14:10:37 -0700 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2013-10-29 14:10:37 -0700 |
commit | 25f96e511f1e1bf70393cdd34c83f57a4b45d458 (patch) | |
tree | c03e7b60e64cbee35672dba9ee9a61c92456a4c8 /tests/hazmat | |
parent | f0bec9c3efe7f6def1b9b4ae53f0278e7cfbadba (diff) | |
download | cryptography-25f96e511f1e1bf70393cdd34c83f57a4b45d458.tar.gz cryptography-25f96e511f1e1bf70393cdd34c83f57a4b45d458.tar.bz2 cryptography-25f96e511f1e1bf70393cdd34c83f57a4b45d458.zip |
Optimize + test cases
Diffstat (limited to 'tests/hazmat')
-rw-r--r-- | tests/hazmat/primitives/test_padding.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/hazmat/primitives/test_padding.py b/tests/hazmat/primitives/test_padding.py index c47b6c5c..f689dda0 100644 --- a/tests/hazmat/primitives/test_padding.py +++ b/tests/hazmat/primitives/test_padding.py @@ -47,6 +47,16 @@ class TestPKCS7(object): b"111111111111111122222222222222", b"111111111111111122222222222222\x02\x02", ), + ( + 128, + b"1" * 16, + b"1" * 16 + b"\x10" * 16, + ), + ( + 128, + b"1" * 17, + b"1" * 17 + b"\x0F" * 15, + ) ]) def test_pad(self, size, unpadded, padded): padder = padding.PKCS7(size) |