summaryrefslogtreecommitdiffstats
path: root/challenge/c12.go
diff options
context:
space:
mode:
Diffstat (limited to 'challenge/c12.go')
-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 {