00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef _ASTERISK_MD5_H
00024 #define _ASTERISK_MD5_H
00025
00026 #include <inttypes.h>
00027
00028 struct MD5Context {
00029 uint32_t buf[4];
00030 uint32_t bits[2];
00031 unsigned char in[64];
00032 };
00033
00034 void MD5Init(struct MD5Context *context);
00035 void MD5Update(struct MD5Context *context, unsigned char const *buf,
00036 unsigned len);
00037 void MD5Final(unsigned char digest[16], struct MD5Context *context);
00038 void MD5Transform(uint32_t buf[4], uint32_t const in[16]);
00039
00040 #endif