ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libcpjit/md5.h
Revision: 1.1
Committed: Fri Oct 14 00:21:57 2005 UTC (20 years, 11 months ago) by root
Content type: text/plain
Branch: MAIN
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 root 1.1 #include <inttypes.h>
2    
3     /* typedef a 32 bit type */
4     typedef uint32_t UINT4;
5    
6     /* Data structure for MD5 (Message Digest) computation */
7     typedef struct {
8     UINT4 i[2]; /* number of _bits_ handled mod 2^64 */
9     UINT4 buf[4]; /* scratch buffer */
10     unsigned char in[64]; /* input buffer */
11     unsigned char digest[16]; /* actual digest after MD5Final call */
12     } MD5_CTX;
13    
14     void MD5Init (MD5_CTX *mdContext);
15     void MD5Update (MD5_CTX *mdContext, const unsigned char *inBuf, unsigned int inLen);
16     void MD5Final (MD5_CTX *mdContext);
17