diff options
author | rsiddharth <s@ricketyspace.net> | 2020-09-06 22:08:22 -0400 |
---|---|---|
committer | rsiddharth <s@ricketyspace.net> | 2020-09-06 22:08:22 -0400 |
commit | 40f31edb47c1892d903d821418bcba06c716c113 (patch) | |
tree | 4f3f8d5eee0940b79aa3e79102a451a0db19a7c9 /lib | |
parent | 3ed79ba77f5110cf901ccd469d9e40244c97279c (diff) |
lib: add BreakIntoBlocks
* lib/blocks.go (BreakIntoBlocks): Fix typo -- 8 -> keysize.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/blocks.go | 2 |
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 } |