summaryrefslogtreecommitdiff
path: root/src/skey/md4.h
blob: 2259dd6087c72392c0b488e3ebfc9444d073d749 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef MD4_H
#define MD4_H

#include <glib.h>

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

void MD4Transform(guint32 buf[4], guint32 const in[16]);
void MD4Init(MD4_CTX *context);
void MD4Update(MD4_CTX *context, unsigned char const *buf, unsigned len);
void MD4Final(unsigned char *digest, MD4_CTX *context);
int  MD4Keycrunch(char *result, const char *seed, const char *passphrase);
void MD4SKey(char *x);

#endif /* !MD4_H */