diff options
author | rsiddharth <s@ricketyspace.net> | 2020-11-28 22:11:57 -0500 |
---|---|---|
committer | rsiddharth <s@ricketyspace.net> | 2020-11-28 22:11:57 -0500 |
commit | c301e9ee2dfbfb8e10b3fe26480fb15091d26e2d (patch) | |
tree | bed77081d703beedddafee25ec7900b6a3920fe2 | |
parent | fdd13b5a8dc345255bd4f7a7b2f6493b03de3ac5 (diff) |
challenge/09: change block size to 20
-rw-r--r-- | challenge/c09.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/challenge/c09.go b/challenge/c09.go index 9067e68..d1a0124 100644 --- a/challenge/c09.go +++ b/challenge/c09.go @@ -10,12 +10,11 @@ import ( func C9() { in := lib.StrToBytes("YELLOW SUBMARINE") - in_padded := lib.Pkcs7Padding(in, 24) + in_padded := lib.Pkcs7Padding(in, 20) fmt.Printf("IN: %v\nOUT: %v\n", in, in_padded) } // Output: // // IN: [89 69 76 76 79 87 32 83 85 66 77 65 82 73 78 69] -// OUT: [89 69 76 76 79 87 32 83 85 66 77 65 82 73 78 69 8 8 8 8 8 8 8 8] - +// OUT: [89 69 76 76 79 87 32 83 85 66 77 65 82 73 78 69 4 4 4 4] |