summaryrefslogtreecommitdiffstats
path: root/challenge/c09.go
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2020-11-28 22:11:57 -0500
committerrsiddharth <s@ricketyspace.net>2020-11-28 22:11:57 -0500
commitc301e9ee2dfbfb8e10b3fe26480fb15091d26e2d (patch)
treebed77081d703beedddafee25ec7900b6a3920fe2 /challenge/c09.go
parentfdd13b5a8dc345255bd4f7a7b2f6493b03de3ac5 (diff)
challenge/09: change block size to 20
Diffstat (limited to 'challenge/c09.go')
-rw-r--r--challenge/c09.go5
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]