From a48b188987129763f5b6eaf13c28c1c94aa451c2 Mon Sep 17 00:00:00 2001 From: "Kevin M. Rosenberg" Date: Mon, 11 Nov 2002 11:17:56 +0000 Subject: [PATCH] r3383: *** empty log message *** --- md5.lisp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/md5.lisp b/md5.lisp index cb422be..ce85d8e 100644 --- a/md5.lisp +++ b/md5.lisp @@ -5,7 +5,7 @@ ;;;; 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, @@ -61,9 +61,10 @@ ;;; 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, @@ -503,9 +504,10 @@ simple-arrays with such element types." (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+)) -- 2.34.1