summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--challenge/c07.go2
-rw-r--r--lib/aes.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/challenge/c07.go b/challenge/c07.go
index 5ceee26..bce898a 100644
--- a/challenge/c07.go
+++ b/challenge/c07.go
@@ -79,7 +79,7 @@ func C7() {
c := lib.Base64ToBytes(cipher07)
k := lib.StrToBytes(key07)
- o := lib.AESDecrypt(c, k)
+ o := lib.AESDecryptECB(c, k)
fmt.Printf("%v", lib.BytesToStr(o))
}
diff --git a/lib/aes.go b/lib/aes.go
index 47c3291..9440b52 100644
--- a/lib/aes.go
+++ b/lib/aes.go
@@ -19,7 +19,7 @@ func AESDecryptCBC(cipher, key, iv []byte) []byte {
return output
}
-func AESDecrypt(cipher, key []byte) []byte {
+func AESDecryptECB(cipher, key []byte) []byte {
iter := len(cipher) / 16
// Decrypt 16 bytes at a time.