diff --git a/src/include/md4.h b/src/include/md4.h index 96620c0e..dd81739e 100644 --- a/src/include/md4.h +++ b/src/include/md4.h @@ -1,5 +1,5 @@ /* MD4.H - header file for MD4C.C - * $OpenBSD: md4.h,v 1.2 1996/09/29 14:53:09 millert Exp $ + * $OpenBSD: md4.h,v 1.3 1996/09/30 03:55:47 millert Exp $ */ /* Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All @@ -25,18 +25,19 @@ #ifndef _MD4_H_ #define _MD4_H_ + /* MD4 context. */ typedef struct MD4Context { - 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 */ } MD4_CTX; -void MD4Init(MD4_CTX *); -void MD4Update(MD4_CTX *, const unsigned char *, unsigned int); -void MD4Final(unsigned char [16], MD4_CTX *); -char * MD4End(MD4_CTX *, char *); -char * MD4File(char *, char *); -char * MD4Data(const unsigned char *, unsigned int, char *); +void MD4Init __P((MD4_CTX *)); +void MD4Update __P((MD4_CTX *, const unsigned char *, unsigned int)); +void MD4Final __P((unsigned char [16], MD4_CTX *)); +char * MD4End __P((MD4_CTX *, char *)); +char * MD4File __P((char *, char *)); +char * MD4Data __P((const unsigned char *, unsigned int, char *)); #endif /* _MD4_H_ */ diff --git a/src/include/md5.h b/src/include/md5.h index 8948b31d..2f44e942 100644 --- a/src/include/md5.h +++ b/src/include/md5.h @@ -1,5 +1,5 @@ /* 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 @@ -26,17 +26,19 @@ documentation and/or software. #ifndef _MD5_H_ #define _MD5_H_ + /* MD5 context. */ 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; -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_ */ diff --git a/src/include/sha1.h b/src/include/sha1.h index 2f3b9b3a..8f3988a9 100644 --- a/src/include/sha1.h +++ b/src/include/sha1.h @@ -10,11 +10,6 @@ #ifndef _SHA1_H #define _SHA1_H -/* Useful defines/typedefs */ - -typedef unsigned char BYTE; -typedef u_int32_t LONG; - /* The SHA1 block size and message digest sizes, in bytes */ #define SHA1_BLOCKSIZE 64 @@ -23,10 +18,10 @@ typedef u_int32_t LONG; /* The structure for storing SHA1 info */ typedef struct { - LONG digest[ 5 ]; /* Message digest */ - LONG countLo, countHi; /* 64-bit bit count */ - LONG data[ 16 ]; /* SHA1 data buffer */ - } SHA1_INFO; + u_int32_t digest[ 5 ]; /* Message digest */ + u_int32_t countLo, countHi; /* 64-bit bit count */ + u_int32_t data[ 16 ]; /* SHA1 data buffer */ +} SHA1_INFO; /* The next def turns on the change to the algorithm introduced by NIST at * the behest of the NSA. It supposedly corrects a weakness in the original @@ -53,9 +48,9 @@ typedef struct { */ #define NEW_SHA1 -void sha1Init (SHA1_INFO *); -void sha1Transform (SHA1_INFO *); -void sha1Final (SHA1_INFO *); -void sha1Update (SHA1_INFO *, BYTE *, int); +void sha1Init __P((SHA1_INFO *)); +void sha1Transform __P((SHA1_INFO *)); +void sha1Final __P((SHA1_INFO *)); +void sha1Update __P((SHA1_INFO *, unsigned char *, int)); #endif /* _SHA1_H */