mirror of
https://github.com/pmai/sha3.git
synced 2025-12-21 23:34:29 +01:00
Fix erroneous buffer handling in sha3-update again (fixes #3).
This commit is contained in:
@ -110,7 +110,7 @@ and `end', which must be numeric bounding-indices."
|
|||||||
#.*optimize-declaration*)
|
#.*optimize-declaration*)
|
||||||
;; Handle potential remaining bytes
|
;; Handle potential remaining bytes
|
||||||
(unless (zerop buffer-index)
|
(unless (zerop buffer-index)
|
||||||
(let ((remainder (- (length buffer) buffer-index))
|
(let ((remainder (- rate-bytes buffer-index))
|
||||||
(length (- end start)))
|
(length (- end start)))
|
||||||
(declare (type fixnum remainder length))
|
(declare (type fixnum remainder length))
|
||||||
(replace buffer vector :start1 buffer-index :start2 start :end2 end)
|
(replace buffer vector :start1 buffer-index :start2 start :end2 end)
|
||||||
|
|||||||
Reference in New Issue
Block a user