mirror of
https://github.com/pmai/sha3.git
synced 2025-12-21 15:24:28 +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*)
|
||||
;; Handle potential remaining bytes
|
||||
(unless (zerop buffer-index)
|
||||
(let ((remainder (- (length buffer) buffer-index))
|
||||
(let ((remainder (- rate-bytes buffer-index))
|
||||
(length (- end start)))
|
||||
(declare (type fixnum remainder length))
|
||||
(replace buffer vector :start1 buffer-index :start2 start :end2 end)
|
||||
|
||||
Reference in New Issue
Block a user