File: md5.h

package info (click to toggle)
dvdisaster 0.72.4-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 20,088 kB
  • ctags: 6,526
  • sloc: ansic: 29,301; php: 3,324; sh: 370; xml: 296; makefile: 73; cs: 33
file content (21 lines) | stat: -rw-r--r-- 477 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef MD5_H
#define MD5_H

#if defined(PNGPACK) || defined(SIMPLE_MD5SUM)
  typedef unsigned int guint32;
#endif

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

void MD5Init(struct MD5Context *context);
void MD5Update(struct MD5Context *context, unsigned char const *buf,
			unsigned len);
void MD5Final(unsigned char digest[16], struct MD5Context *context);

void AsciiDigest(char*, unsigned char*);

#endif /* MD5_H */