summaryrefslogtreecommitdiffstats
path: root/fwcutter/md5.h
blob: 10cb9f490838930f73b22b12cfe35e3a2a195ba8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef FWCUTTER_MD5_H_
#define FWCUTTER_MD5_H_

#include <stdint.h>

struct MD5Context {
	uint32_t buf[4];
	uint32_t bits[2];
	union _u {
		unsigned char in[64];
		uint32_t in_u32[16];
	} u;
};

void MD5Init(struct MD5Context *ctx);
void MD5Update(struct MD5Context *ctx, unsigned char *buf, unsigned len);
void MD5Final(unsigned char *digest, struct MD5Context *ctx);

#endif /* FWCUTTER_MD5_H_ */
bues.ch cgit interface