summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/md4.h21
-rw-r--r--include/md5.h22
-rw-r--r--include/sha1.h21
3 files changed, 31 insertions, 33 deletions
diff --git a/include/md4.h b/include/md4.h
index 96620c0e51d..dd81739e343 100644
--- a/include/md4.h
+++ b/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/include/md5.h b/include/md5.h
index 8948b31d8c6..2f44e942c56 100644
--- a/include/md5.h
+++ b/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/include/sha1.h b/include/sha1.h
index 2f3b9b3a8ca..8f3988a9c5b 100644
--- a/include/sha1.h
+++ b/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 */