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:
2013-09-14 23:57:51 +02:00
parent 9391b65603
commit fc1c70579e

View File

@ -124,7 +124,7 @@ and `end', which must be numeric bounding-indices."
(setf (sha3-state-buffer-index state) 0 (setf (sha3-state-buffer-index state) 0
start (+ start remainder)))) start (+ start remainder))))
;; Now handle full blocks, stuff any remainder into buffer ;; 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 do
(cond (cond
((<= (+ block-offset rate-bytes) end) ((<= (+ block-offset rate-bytes) end)