summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--challenge/c09.go15
-rw-r--r--cryptopals.go2
2 files changed, 17 insertions, 0 deletions
diff --git a/challenge/c09.go b/challenge/c09.go
new file mode 100644
index 0000000..aaf1664
--- /dev/null
+++ b/challenge/c09.go
@@ -0,0 +1,15 @@
+// Copyright © 2020 rsiddharth <s@ricketyspace.net>
+// SPDX-License-Identifier: ISC
+
+package challenge
+
+import (
+ "fmt"
+ "ricketyspace.net/cryptopals/lib"
+)
+
+func C9() {
+ in := lib.StrToBytes("YELLOW SUBMARINE")
+ in_padded := lib.Pkcs7Padding(in, 24)
+ fmt.Printf("IN: %v\nOUT: %v\n", in, in_padded)
+}
diff --git a/cryptopals.go b/cryptopals.go
index 10723b8..68a48de 100644
--- a/cryptopals.go
+++ b/cryptopals.go
@@ -34,5 +34,7 @@ func main() {
challenge.C7()
case 8:
challenge.C8()
+ case 9:
+ challenge.C9()
}
}