]>
git.saurik.com Git - apple/security.git/blob - AppleCSP/MiscCSPAlgs/MD5.h
4 Written by: Colin Plumb
6 Copyright: Copyright 1998 by 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 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 */
53 void MD5Init(struct MD5Context
*context
);
54 void MD5Update(struct MD5Context
*context
, unsigned char const *buf
,
56 void MD5Final(struct MD5Context
*context
, unsigned char *digest
);
59 * This is needed to make RSAREF happy on some MS-DOS compilers.
61 typedef struct MD5Context MD5_CTX
;