]>
git.saurik.com Git - apple/security.git/blob - SecurityTests/cspxutils/hashTimeSA/MD5.h
4 Written by: Colin Plumb
6 Copyright: Copyright (c) 1998,2004 Apple Computer, Inc. All Rights Reserved.
8 Change History (most recent first):
10 <8> 10/06/98 ap Changed to compile with C++.
15 /* Copyright (c) 1998,2004 Apple Computer, Inc. All Rights Reserved.
17 * NOTICE: USE OF THE MATERIALS ACCOMPANYING THIS NOTICE IS SUBJECT
18 * TO THE TERMS OF THE SIGNED "FAST ELLIPTIC ENCRYPTION (FEE) REFERENCE
19 * SOURCE CODE EVALUATION AGREEMENT" BETWEEN APPLE COMPUTER, INC. AND THE
20 * ORIGINAL LICENSEE THAT OBTAINED THESE MATERIALS FROM APPLE COMPUTER,
21 * INC. ANY USE OF THESE MATERIALS NOT PERMITTED BY SUCH AGREEMENT WILL
22 * EXPOSE YOU TO LIABILITY.
23 ***************************************************************************
26 * derived and used without need for permission from public domain source
37 typedef unsigned int uint32
;
38 #elif defined (macintosh)
39 typedef unsigned int uint32
;
41 #include <Security/cssmconfig.h>
42 //typedef unsigned long uint32;
47 uint32 bits
[2]; // bits[0] is low 32 bits of bit count
51 #define MD5_DIGEST_SIZE 16 /* in bytes */
52 #define MD5_BLOCK_SIZE 64 /* in bytes */
54 void MD5Init(struct MD5Context
*context
);
55 void MD5Update(struct MD5Context
*context
, unsigned char const *buf
,
57 void MD5Final(struct MD5Context
*context
, unsigned char *digest
);