Debian Codegraph @

ext/digest/md5.h

raw
1 #ifndef _MD5_H_
2 #define _MD5_H_
3
4 #include <gauche.h>
5 #include <gauche/extend.h>
6 #include <sys/types.h>
7 #include "renaming.h"
8
9 #define MD5_HASHBYTES 16
10
11 #define u_int32_t uint32_t
12
13 typedef struct MD5Context {
14 u_int32_t buf[4];
15 u_int32_t bits[2];
16 unsigned char in[64];
17 } MD5_CTX;
18
19 extern void MD5_Init(MD5_CTX *context);
20 extern void MD5_Update(MD5_CTX *context, unsigned char const *buf,
21 unsigned len);
22 extern void MD5_Final(unsigned char digest[MD5_HASHBYTES], MD5_CTX *context);
23 extern void MD5_Transform(u_int32_t buf[4], u_int32_t const in[16]);
24 extern char * MD5_End(MD5_CTX *, char *);
25 extern char * MD5_File(const char *, char *);
26 extern char * MD5_Data (const unsigned char *, unsigned int, char *);
27
28 #endif /* !_MD5_H_ */