]>
jfr.im git - irc/evilnet/x3.git/blob - src/md5.h
5 #define uint8 unsigned char
9 #define uint32 unsigned long int
20 void md5_starts( md5_context
*ctx
);
21 void md5_update( md5_context
*ctx
, uint8
*input
, uint32 length
);
22 void md5_finish( md5_context
*ctx
, uint8 digest
[16] );
27 /* ---------------------------------------
29 * DELETE THIS SOME DAY
31 *----------------------------------------*/
33 /* GLOBAL.H - RSAREF types and constants */
35 /* PROTOTYPES should be set to one if and only if the compiler supports
36 function argument prototyping.
37 The following makes PROTOTYPES default to 0 if it has not already
38 been defined with C compiler flags.
44 /* POINTER defines a generic pointer type */
45 typedef unsigned char *POINTER
;
47 /* UINT2 defines a two byte word */
48 typedef unsigned short int UINT2
;
50 /* UINT4 defines a four byte word */
51 #if defined(__alpha) || defined(_LP64) || defined(__LP64__)
52 typedef unsigned int UINT4
;
54 typedef unsigned long int UINT4
;
57 /* PROTO_LIST is defined depending on how PROTOTYPES is defined above.
58 If using PROTOTYPES, then PROTO_LIST returns the list, otherwise it
59 returns an empty list.
62 #define PROTO_LIST(list) list
64 #define PROTO_LIST(list) ()
67 /* MD5.H - header file for MD5C.C */
69 /* Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All
72 License to copy and use this software is granted provided that it
73 is identified as the "RSA Data Security, Inc. MD5 Message-Digest
74 Algorithm" in all material mentioning or referencing this software
77 License is also granted to make and use derivative works provided
78 that such works are identified as "derived from the RSA Data
79 Security, Inc. MD5 Message-Digest Algorithm" in all material
80 mentioning or referencing the derived work.
82 RSA Data Security, Inc. makes no representations concerning either
83 the merchantability of this software or the suitability of this
84 software for any particular purpose. It is provided "as is"
85 without express or implied warranty of any kind.
87 These notices must be retained in any copies of any part of this
88 documentation and/or software.
93 UINT4 state
[4]; /* state (ABCD) */
94 UINT4 count
[2]; /* number of bits, modulo 2^64 (lsb first) */
95 unsigned char buffer
[64]; /* input buffer */
98 void MD5Init
PROTO_LIST ((MD5_CTX
*));
99 void MD5Update
PROTO_LIST ((MD5_CTX
*, unsigned char *, unsigned int));
100 void MD5Final
PROTO_LIST ((unsigned char [16], MD5_CTX
*));