From c301e9ee2dfbfb8e10b3fe26480fb15091d26e2d Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Sat, 28 Nov 2020 22:11:57 -0500 Subject: challenge/09: change block size to 20 --- challenge/c09.go | 5 ++--- 1 file 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] -- cgit v1.2.3