summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2021-01-19 20:52:38 -0500
committerrsiddharth <s@ricketyspace.net>2021-01-19 20:52:38 -0500
commit1e9917c16fa02da5b73a53929a6b8173b2716279 (patch)
treecb075105d50749b96ff7f554b7c4d3addea07d5b
parent5e83546a0b02acd88d205e4cd99b14a4fc4636e0 (diff)
challenge: fix findUnknownStringCharacteristics
-rw-r--r--challenge/c12.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/challenge/c12.go b/challenge/c12.go
index fbb9fbb..8c25fb2 100644
--- a/challenge/c12.go
+++ b/challenge/c12.go
@@ -61,7 +61,7 @@ func findBlockSize() int {
func findUnknownStringCharacteristics(blocksize int) (int, int) {
in := make([]byte, 0)
c_sz := len(lib.OracleAESEncryptECB(in)) // Cipher size
- nblocks := c_sz / 16 // number of blocks
+ nblocks := c_sz / blocksize // number of blocks
// Figure out ize of unknown string.
for {