summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2015-03-28 03:10:42 -0400
committerJesse Luehrs <doy@tozt.net>2015-03-28 03:10:42 -0400
commitcf487bb3c09d4e0532bd452ad3aa5eb292b176ba (patch)
tree7c5b42f3a9f464c5d0b628795e4159dee4b59f4b /tests
parentf0af2c1b75c366b228925a8b88cf3bf19066dc41 (diff)
downloadmatasano-cf487bb3c09d4e0532bd452ad3aa5eb292b176ba.tar.gz
matasano-cf487bb3c09d4e0532bd452ad3aa5eb292b176ba.zip
padding byte of 0x00 isn't valid
Diffstat (limited to 'tests')
-rw-r--r--tests/lib.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/lib.rs b/tests/lib.rs
index 3dbfa55..4ebeebf 100644
--- a/tests/lib.rs
+++ b/tests/lib.rs
@@ -298,6 +298,10 @@ fn problem_15 () {
None
);
assert_eq!(
+ matasano::unpad_pkcs7(b"ICE ICE BABY\x00"),
+ None
+ );
+ assert_eq!(
matasano::unpad_pkcs7(b"\x04\x04\x04\x04"),
Some(&b""[..])
);