mirror of
https://github.com/pmai/md5.git
synced 2025-12-21 22:44:29 +01:00
Add md5sum-string support for AllegroCL.
This commit is contained in:
6
md5.lisp
6
md5.lisp
@ -677,7 +677,11 @@ in the resulting binary representation."
|
|||||||
(md5sum-sequence
|
(md5sum-sequence
|
||||||
(ccl:encode-string-to-octets string :external-format external-format
|
(ccl:encode-string-to-octets string :external-format external-format
|
||||||
:start start :end end))
|
:start start :end end))
|
||||||
#-(or :cmu :sbcl (and :lispworks (not :lispworks4)) :ccl)
|
#+allegro
|
||||||
|
(md5sum-sequence
|
||||||
|
(excl:string-to-octets string :external-format external-format
|
||||||
|
:null-terminate nil :start start :end end))
|
||||||
|
#-(or :cmu :sbcl (and :lispworks (not :lispworks4)) :ccl :allegro)
|
||||||
(if (<= char-code-limit 256)
|
(if (<= char-code-limit 256)
|
||||||
(md5sum-sequence string :start start :end end)
|
(md5sum-sequence string :start start :end end)
|
||||||
(error "md5:md5sum-string is not supported for your implementation."))))
|
(error "md5:md5sum-string is not supported for your implementation."))))
|
||||||
|
|||||||
Reference in New Issue
Block a user