|
@ -1,5 +1,5 @@ |
|
|
/* MD5.H - header file for MD5C.C |
|
|
/* MD5.H - header file for MD5C.C |
|
|
* $OpenBSD: md5.h,v 1.2 1996/09/29 14:53:10 millert Exp $ |
|
|
|
|
|
|
|
|
* $OpenBSD: md5.h,v 1.3 1996/09/30 03:55:48 millert Exp $ |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
|
|
|
/* Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All |
|
|
/* Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All |
|
@ -26,17 +26,19 @@ documentation and/or software. |
|
|
|
|
|
|
|
|
#ifndef _MD5_H_ |
|
|
#ifndef _MD5_H_ |
|
|
#define _MD5_H_ |
|
|
#define _MD5_H_ |
|
|
|
|
|
|
|
|
/* MD5 context. */ |
|
|
/* MD5 context. */ |
|
|
typedef struct MD5Context { |
|
|
typedef struct MD5Context { |
|
|
u_int32_t state[4]; /* state (ABCD) */ |
|
|
|
|
|
u_int32_t count[2]; /* number of bits, modulo 2^64 (lsb first) */ |
|
|
|
|
|
unsigned char buffer[64]; /* input buffer */ |
|
|
|
|
|
|
|
|
u_int32_t state[4]; /* state (ABCD) */ |
|
|
|
|
|
u_int32_t count[2]; /* number of bits, modulo 2^64 (lsb first) */ |
|
|
|
|
|
unsigned char buffer[64]; /* input buffer */ |
|
|
} MD5_CTX; |
|
|
} MD5_CTX; |
|
|
|
|
|
|
|
|
void MD5Init (MD5_CTX *); |
|
|
|
|
|
void MD5Update (MD5_CTX *, const unsigned char *, unsigned int); |
|
|
|
|
|
void MD5Final (unsigned char [16], MD5_CTX *); |
|
|
|
|
|
char * MD5End(MD5_CTX *, char *); |
|
|
|
|
|
char * MD5File(char *, char *); |
|
|
|
|
|
char * MD5Data(const unsigned char *, unsigned int, char *); |
|
|
|
|
|
|
|
|
void MD5Init __P((MD5_CTX *)); |
|
|
|
|
|
void MD5Update __P((MD5_CTX *, const unsigned char *, unsigned int)); |
|
|
|
|
|
void MD5Final __P((unsigned char [16], MD5_CTX *)); |
|
|
|
|
|
char * MD5End __P((MD5_CTX *, char *)); |
|
|
|
|
|
char * MD5File __P((char *, char *)); |
|
|
|
|
|
char * MD5Data __P((const unsigned char *, unsigned int, char *)); |
|
|
|
|
|
|
|
|
#endif /* _MD5_H_ */ |
|
|
#endif /* _MD5_H_ */ |