;;;; cmucl-help mailing-list hosted at cons.org, in November 2001 and
;;;; has been placed into the public domain.
;;;;
-;;;; $Id: md5.lisp,v 1.1 2002/11/11 11:11:22 kevin Exp $
+;;;; $Id: md5.lisp,v 1.2 2002/11/11 11:17:56 kevin Exp $
;;;;
;;;; While the implementation should work on all conforming Common
;;;; Lisp implementations, it has only been optimized for CMU CL,
;;; Section 2: Basic Datatypes
+(eval-when (:compile-toplevel :load-toplevel :execute)
(deftype ub32 ()
"Corresponds to the 32bit quantity word of the MD5 Spec"
- `(unsigned-byte 32))
+ `(unsigned-byte 32)))
(defmacro assemble-ub32 (a b c d)
"Assemble an ub32 value from the given (unsigned-byte 8) values,
(update-md5-state state sequence :start start :end real-end))
(finalize-md5-state state)))
+(eval-when (:compile-toplevel :load-toplevel :execute)
(defconstant +buffer-size+ (* 128 1024)
"Size of internal buffer to use for md5sum-stream and md5sum-file
-operations. This should be a multiple of 64, the MD5 block size.")
+operations. This should be a multiple of 64, the MD5 block size."))
(deftype buffer-index () `(integer 0 ,+buffer-size+))