mirror of
https://github.com/pmai/md5.git
synced 2025-12-21 14:34:29 +01:00
Ensure fix for small blocks works with md5-small-length feature.
Based on my different fix for the small blocks issue, which got integrated into cl-md5 but not sbcl.
This commit is contained in:
7
md5.lisp
7
md5.lisp
@ -410,8 +410,11 @@ bounded by start and end, which must be numeric bounding-indices."
|
||||
(update-md5-block regs block)
|
||||
(setq new-index 0))
|
||||
(when (>= start end)
|
||||
(setf (md5-state-buffer-index state) new-index)
|
||||
(incf (md5-state-amount state) length)
|
||||
(setf (md5-state-buffer-index state) new-index
|
||||
(md5-state-amount state)
|
||||
#-md5-small-length (+ (md5-state-amount state) length)
|
||||
#+md5-small-length (the (unsigned-byte 29)
|
||||
(+ (md5-state-amount state) length)))
|
||||
(return-from update-md5-state state)))))
|
||||
;; Handle main-part and new-rest
|
||||
(etypecase sequence
|
||||
|
||||
Reference in New Issue
Block a user