diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/lib.rs b/tests/lib.rs index a3e797e..e5392b0 100644 --- a/tests/lib.rs +++ b/tests/lib.rs @@ -111,3 +111,10 @@ fn problem_8 () { let got = matasano::find_aes_128_ecb_encrypted_string(&possibles[..]); assert_eq!(got, ciphertext); } + +#[test] +fn problem_9 () { + let block = b"YELLOW SUBMARINE"; + let got = matasano::pad_pkcs7(block, 20); + assert_eq!(got, b"YELLOW SUBMARINE\x04\x04\x04\x04"); +} |