diff options
author | Jesse Luehrs <doy@tozt.net> | 2015-03-28 03:10:42 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2015-03-28 03:10:42 -0400 |
commit | cf487bb3c09d4e0532bd452ad3aa5eb292b176ba (patch) | |
tree | 7c5b42f3a9f464c5d0b628795e4159dee4b59f4b /tests | |
parent | f0af2c1b75c366b228925a8b88cf3bf19066dc41 (diff) | |
download | matasano-cf487bb3c09d4e0532bd452ad3aa5eb292b176ba.tar.gz matasano-cf487bb3c09d4e0532bd452ad3aa5eb292b176ba.zip |
padding byte of 0x00 isn't valid
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib.rs | 4 |
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""[..]) ); |