summaryrefslogtreecommitdiffstats
path: root/challenge
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2020-12-06 16:48:40 -0500
committerrsiddharth <s@ricketyspace.net>2020-12-06 16:48:40 -0500
commit7b29de2661a0a1e59d816544b7176b4ec8201468 (patch)
tree1428b419653a827ebc5b22e2c4110872195ae90c /challenge
parent3e18e852ca696742dba09cfa6862c801fca5fa65 (diff)
challenge: fix typo in challenge 08
Diffstat (limited to 'challenge')
-rw-r--r--challenge/c08.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/challenge/c08.go b/challenge/c08.go
index 8952a41..862c070 100644
--- a/challenge/c08.go
+++ b/challenge/c08.go
@@ -17,7 +17,7 @@ func C8() {
fmt.Printf("Cipher at line %d (%s)", i+1, c08[i])
fmt.Printf(" might be AES encrypted in ECB mode.\n")
fmt.Printf("16-byte block '%s'", lib.BytesToHexStr(block))
- fmt.Printf(" occurs more than once this cipher.\n")
+ fmt.Printf(" occurs more than once in this cipher.\n")
}
}
}
@@ -25,7 +25,7 @@ func C8() {
// Output:
//
// Cipher at line 133 (d880619740a8a19b7840a8a31c810a3d08649af70dc06f4fd5d2d69c744cd283e2dd052f6b641dbf9d11b0348542bb5708649af70dc06f4fd5d2d69c744cd2839475c9dfdbc1d46597949d9c7e82bf5a08649af70dc06f4fd5d2d69c744cd28397a93eab8d6aecd566489154789a6b0308649af70dc06f4fd5d2d69c744cd283d403180c98c8f6db1f2a3f9c4040deb0ab51b29933f2c123c58386b06fba186a) might be AES encrypted in ECB mode.
-// 16-byte block '08649af70dc06f4fd5d2d69c744cd283' occurs more than once this cipher.
+// 16-byte block '08649af70dc06f4fd5d2d69c744cd283' occurs more than once in this cipher.
func isECB(bs []byte) []byte {
blocks := lib.BreakIntoBlocks(bs, 16)