version 1.2, 1996/09/29 14:53:09 |
version 1.3, 1996/09/30 03:55:47 |
|
|
|
|
#ifndef _MD4_H_ |
#ifndef _MD4_H_ |
#define _MD4_H_ |
#define _MD4_H_ |
|
|
/* MD4 context. */ |
/* MD4 context. */ |
typedef struct MD4Context { |
typedef struct MD4Context { |
u_int32_t state[4]; /* state (ABCD) */ |
u_int32_t state[4]; /* state (ABCD) */ |
u_int32_t count[2]; /* number of bits, modulo 2^64 (lsb first) */ |
u_int32_t count[2]; /* number of bits, modulo 2^64 (lsb first) */ |
unsigned char buffer[64]; /* input buffer */ |
unsigned char buffer[64]; /* input buffer */ |
} MD4_CTX; |
} MD4_CTX; |
|
|
void MD4Init(MD4_CTX *); |
void MD4Init __P((MD4_CTX *)); |
void MD4Update(MD4_CTX *, const unsigned char *, unsigned int); |
void MD4Update __P((MD4_CTX *, const unsigned char *, unsigned int)); |
void MD4Final(unsigned char [16], MD4_CTX *); |
void MD4Final __P((unsigned char [16], MD4_CTX *)); |
char * MD4End(MD4_CTX *, char *); |
char * MD4End __P((MD4_CTX *, char *)); |
char * MD4File(char *, char *); |
char * MD4File __P((char *, char *)); |
char * MD4Data(const unsigned char *, unsigned int, char *); |
char * MD4Data __P((const unsigned char *, unsigned int, char *)); |
|
|
#endif /* _MD4_H_ */ |
#endif /* _MD4_H_ */ |