The Pedigree Project  0.1
modules/system/lwip/include/netif/ppp/polarssl/md5.h
1 
36 #include "netif/ppp/ppp_opts.h"
37 #if LWIP_INCLUDED_POLARSSL_MD5
38 
39 #ifndef LWIP_INCLUDED_POLARSSL_MD5_H
40 #define LWIP_INCLUDED_POLARSSL_MD5_H
41 
45 typedef struct
46 {
47  unsigned long total[2];
48  unsigned long state[4];
49  unsigned char buffer[64];
50 }
51 md5_context;
52 
53 #ifdef __cplusplus
54 extern "C" {
55 #endif
56 
62 void md5_starts( md5_context *ctx );
63 
71 void md5_update( md5_context *ctx, const unsigned char *input, int ilen );
72 
79 void md5_finish( md5_context *ctx, unsigned char output[16] );
80 
88 void md5( unsigned char *input, int ilen, unsigned char output[16] );
89 
90 #ifdef __cplusplus
91 }
92 #endif
93 
94 #endif /* LWIP_INCLUDED_POLARSSL_MD5_H */
95 
96 #endif /* LWIP_INCLUDED_POLARSSL_MD5 */