Exceptions raised during renaming in rotating file handlers are now passed to handleE...
[python.git] / Modules / md5.h
blob13628dfbc3f657d3fa19a53ac9643233476328d8
1 /* MD5.H - header file for MD5C.C
2 */
4 /* Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All
5 rights reserved.
7 License to copy and use this software is granted provided that it
8 is identified as the "RSA Data Security, Inc. MD5 Message-Digest
9 Algorithm" in all material mentioning or referencing this software
10 or this function.
12 License is also granted to make and use derivative works provided
13 that such works are identified as "derived from the RSA Data
14 Security, Inc. MD5 Message-Digest Algorithm" in all material
15 mentioning or referencing the derived work.
17 RSA Data Security, Inc. makes no representations concerning either
18 the merchantability of this software or the suitability of this
19 software for any particular purpose. It is provided "as is"
20 without express or implied warranty of any kind.
22 These notices must be retained in any copies of any part of this
23 documentation and/or software.
26 /* ========== include global.h ========== */
27 /* GLOBAL.H - RSAREF types and constants
30 /* POINTER defines a generic pointer type */
31 typedef unsigned char *POINTER;
33 /* UINT4 defines a four byte word */
34 #if SIZEOF_LONG == 4
35 typedef unsigned long int UINT4;
36 #elif SIZEOF_SHORT == 4
37 typedef unsigned short int UINT4;
38 #elif INT_MAX == 2147483647
39 typedef unsigned int UINT4;
40 #else
41 #error "Can't find a 4-byte integral type"
42 #endif
44 /* ========== End global.h; continue md5.h ========== */
46 /* MD5 context. */
47 typedef struct {
48 UINT4 state[4]; /* state (ABCD) */
49 UINT4 count[2]; /* number of bits, modulo 2^64 (lsb first) */
50 unsigned char buffer[64]; /* input buffer */
51 } MD5_CTX;
53 /* Rename all exported symbols to avoid conflicts with similarly named
54 symbols in some systems' standard C libraries... */
56 #define MD5Init _Py_MD5Init
57 #define MD5Update _Py_MD5Update
58 #define MD5Final _Py_MD5Final
60 void MD5Init(MD5_CTX *);
61 void MD5Update(MD5_CTX *, unsigned char *, unsigned int);
62 void MD5Final(unsigned char [16], MD5_CTX *);