aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/md5.h
blob: 35f0dd91c2583cb897cd8c7aa236684a67b0418c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef MD5_H
#define MD5_H

#include "MHD_config.h"

#ifdef WORDS_BIGENDIAN
#define HIGHFIRST
#endif

#define MD5_DIGEST_SIZE 16

struct MD5Context 
{
  uint32_t buf[4];
  uint32_t bits[2];
  unsigned char in[64];
};


void 
MD5Init(struct MD5Context *ctx);

void
MD5Update(struct MD5Context *ctx,
	  const void *buf,
	  unsigned len);

void MD5Final(unsigned char digest[MD5_DIGEST_SIZE],
	      struct MD5Context *ctx);

#endif /* !MD5_H */