]>
git.saurik.com Git - apple/security.git/blob - OSX/libsecurity_cryptkit/lib/ckMD5.h
4 Written by: Colin Plumb
6 Copyright: Copyright (c) 1998,2011,2014 Apple 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,2011,2014 Apple 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, 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 ***************************************************************************
26 * derived and used without need for permission from public domain source
35 * In this case we use the MD5 implementation in libSystem.
37 #include <CommonCrypto/CommonDigest.h>
39 typedef CC_MD5_CTX MD5Context
;
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)
45 #define MD5_DIGEST_SIZE CC_MD5_DIGEST_LENGTH