forked from hackndev/0verkill
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmd5.h
More file actions
23 lines (18 loc) · 656 Bytes
/
Copy pathmd5.h
File metadata and controls
23 lines (18 loc) · 656 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef _MD5_H_
#define _MD5_H_
#include <sys/types.h>
#define MD5_HASHBYTES 16
typedef struct MD5Context {
unsigned int buf[4];
unsigned int bits[2];
unsigned char in[64];
} MD5_CTX;
extern void MD5Init(MD5_CTX *context);
extern void MD5Update(MD5_CTX *context, unsigned char const *buf,
unsigned len);
extern void MD5Final(unsigned char digest[MD5_HASHBYTES], MD5_CTX *context);
extern void MD5Transform(unsigned int buf[4], unsigned int const in[16]);
extern char * MD5End(MD5_CTX *, char *);
extern char * MD5File(const char *, char *);
extern char * MD5Data (const unsigned char *, unsigned int, char *);
#endif /* !_MD5_H_ */