summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2020-09-06 22:08:22 -0400
committerrsiddharth <s@ricketyspace.net>2020-09-06 22:08:22 -0400
commit40f31edb47c1892d903d821418bcba06c716c113 (patch)
tree4f3f8d5eee0940b79aa3e79102a451a0db19a7c9
parent3ed79ba77f5110cf901ccd469d9e40244c97279c (diff)
lib: add BreakIntoBlocks
* lib/blocks.go (BreakIntoBlocks): Fix typo -- 8 -> keysize.
-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
}