mirror of
https://github.com/pmai/sha3.git
synced 2025-12-21 15:24:28 +01:00
Remove superfluous final iteration in sha3-update.
The superfluous last iteration when start = end wasn't harmful, since the iteration body winds up as a no-op in that case anyway, but wasn't intended or needed.
This commit is contained in:
@ -124,7 +124,7 @@ and `end', which must be numeric bounding-indices."
|
||||
(setf (sha3-state-buffer-index state) 0
|
||||
start (+ start remainder))))
|
||||
;; Now handle full blocks, stuff any remainder into buffer
|
||||
(loop for block-offset of-type fixnum from start to end by rate-bytes
|
||||
(loop for block-offset of-type fixnum from start below end by rate-bytes
|
||||
do
|
||||
(cond
|
||||
((<= (+ block-offset rate-bytes) end)
|
||||
|
||||
Reference in New Issue
Block a user