Debian Codegraph @

core/libs/dngwriter/extra/md5/XMP_MD5.h

raw
1 #if AdobePrivate
2 // (c) Copyright 1999. Adobe Systems, Incorporated. All rights reserved.
3 // $Id: $
4 #endif
5 #ifndef __MD5_h__
6 #define __MD5_h__
7
8 /******************************************************************************/
9
10 /*
11 MD5C.C - RSA Data Security, Inc., MD5 message-digest algorithm
12
13 Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All rights
14 reserved.
15
16 License to copy and use this software is granted provided that it is
17 identified as the "RSA Data Security, Inc. MD5 Message-Digest Algorithm" in
18 all material mentioning or referencing this software or this function.
19
20 License is also granted to make and use derivative works provided that such
21 works are identified as "derived from the RSA Data Security, Inc. MD5
22 Message-Digest Algorithm" in all material mentioning or referencing the
23 derived work.
24
25 RSA Data Security, Inc. makes no representations concerning either the
26 merchantability of this software or the suitability of this software for
27 any particular purpose. It is provided "as is" without express or implied
28 warranty of any kind.
29
30 These notices must be retained in any copies of any part of this
31 documentation and/or software.
32 */
33
34 /******************************************************************************/
35
36 #include "public/include/XMP_Const.h" // For safe fixed integer sizes.
37
38 /* MD5 context. */
39 struct MD5_CTX
40 {
41 XMP_Uns32 state[4]; /* state (ABCD) */
42 XMP_Uns32 count[2]; /* number of bits, modulo 2^64 (lsb first) */
43 XMP_Uns8 buffer[64]; /* input buffer */
44 };
45
46 extern void MD5Init (MD5_CTX *);
47 extern void MD5Update (MD5_CTX *, XMP_Uns8 *, XMP_Uns32);
48 extern void MD5Final(XMP_Uns8 [16], MD5_CTX *);
49
50 /******************************************************************************/
51
52 #endif