]> git.saurik.com Git - apple/security.git/blob - OSX/libsecurity_cryptkit/lib/ckMD5.h
Security-59306.11.20.tar.gz
[apple/security.git] / OSX / libsecurity_cryptkit / lib / ckMD5.h
1 /*
2 File: MD5.h
3
4 Written by: Colin Plumb
5
6 Copyright: Copyright (c) 1998,2011,2014 Apple Inc. All Rights Reserved.
7
8 Change History (most recent first):
9
10 <8> 10/06/98 ap Changed to compile with C++.
11
12 To Do:
13 */
14
15 /* Copyright (c) 1998,2011,2014 Apple Inc. All Rights Reserved.
16 *
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, INC. AND THE
20 * ORIGINAL LICENSEE THAT OBTAINED THESE MATERIALS FROM APPLE,
21 * INC. ANY USE OF THESE MATERIALS NOT PERMITTED BY SUCH AGREEMENT WILL
22 * EXPOSE YOU TO LIABILITY.
23 ***************************************************************************
24 *
25 * MD5.h
26 * derived and used without need for permission from public domain source
27 */
28
29 #ifndef _CK_MD5_H_
30 #define _CK_MD5_H_
31
32 #include "ckconfig.h"
33
34 /*
35 * In this case we use the MD5 implementation in libSystem.
36 */
37 #include <CommonCrypto/CommonDigest.h>
38
39 typedef CC_MD5_CTX MD5Context;
40
41 #define MD5Init(c) CC_MD5_Init(c)
42 #define MD5Update(c, d, l) CC_MD5_Update(c, d, l)
43 #define MD5Final(c, d) CC_MD5_Final(d, c)
44
45 #define MD5_DIGEST_SIZE CC_MD5_DIGEST_LENGTH
46
47 #endif /*_CK_MD5_H_*/