summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/blocks.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/blocks.go b/lib/blocks.go
index e817e6f..d13b107 100644
--- a/lib/blocks.go
+++ b/lib/blocks.go
@@ -23,7 +23,7 @@ func BreakIntoBlocks(cb []byte, keysize int) [][]byte {
blocks[k][j] = cb[i]
j += 1
- if j == 8 {
+ if j == keysize {
j = 0
k += 1
}