This file looks large and may slow your browser down if we attempt
to syntax highlight it, so we are showing it without any
pretty colors.
Highlight
it anyway.
| 1 |
#ifndef MD5_H |
| 2 |
#define MD5_H |
| 3 |
|
| 4 |
#include "config.h" |
| 5 |
|
| 6 |
#include <sys/types.h> |
| 7 |
|
| 8 |
#include "fetchmail.h" |
| 9 |
|
| 10 |
#if SIZEOF_INT == 4 |
| 11 |
typedef unsigned int uint32; |
| 12 |
#else |
| 13 |
typedef unsigned long int uint32; |
| 14 |
#endif |
| 15 |
|
| 16 |
struct MD5Context { |
| 17 |
uint32 buf[4]; |
| 18 |
uint32 bits[2]; |
| 19 |
unsigned char in[64]; |
| 20 |
}; |
| 21 |
|
| 22 |
void MD5Init(struct MD5Context *context); |
| 23 |
void MD5Update(struct MD5Context *context, const void *buf, unsigned len); |
| 24 |
void MD5Final(void *digest, struct MD5Context *context); |
| 25 |
void MD5Transform(uint32 buf[4], uint32 const in[16]); |
| 26 |
|
| 27 |
/* |
| 28 |
* This is needed to make RSAREF happy on some MS-DOS compilers. |
| 29 |
*/ |
| 30 |
typedef struct MD5Context MD5_CTX; |
| 31 |
|
| 32 |
#endif /* !MD5_H */ |