networkclient
md5.h
Go to the documentation of this file.
1 
29 #ifdef HAVE_OPENSSL
30 #include <openssl/md5.h>
31 #elif !defined(_MD5_H)
32 #define _MD5_H
33 
34 /* Any 32-bit or wider unsigned integer data type will do */
35 typedef unsigned int MD5_u32plus;
36 
37 typedef struct {
39  MD5_u32plus a, b, c, d;
40  unsigned char buffer[64];
41  MD5_u32plus block[16];
42 } MD5_CTX;
43 
44 extern void MD5_Init(MD5_CTX *ctx);
45 extern void MD5_Update(MD5_CTX *ctx, const void *data, unsigned long size);
46 extern void MD5_Final(unsigned char *result, MD5_CTX *ctx);
47 
48 #endif
void MD5_Init(MD5_CTX *ctx)
Definition: md5.c:210
void MD5_Update(MD5_CTX *ctx, const void *data, unsigned long size)
Definition: md5.c:221
MD5_u32plus d
Definition: md5.h:39
Definition: md5.h:37
MD5_u32plus lo
Definition: md5.h:38
unsigned int MD5_u32plus
Definition: md5.h:35
void MD5_Final(unsigned char *result, MD5_CTX *ctx)
Definition: md5.c:261