summaryrefslogtreecommitdiffstats
path: root/src/include/krb5/rsa-md4.h
diff options
context:
space:
mode:
authorJohn Kohl <jtkohl@mit.edu>1991-02-26 13:42:23 +0000
committerJohn Kohl <jtkohl@mit.edu>1991-02-26 13:42:23 +0000
commit139d85874cfbf52a50adbad0db1c4d1e98439de3 (patch)
tree53d72f1d401f74dcd7c8ba0fb6a2dff9096e2ba6 /src/include/krb5/rsa-md4.h
parentd20a0a52e94f95b65546c375d52ab5358748d48f (diff)
downloadkrb5-139d85874cfbf52a50adbad0db1c4d1e98439de3.tar.gz
krb5-139d85874cfbf52a50adbad0db1c4d1e98439de3.tar.xz
krb5-139d85874cfbf52a50adbad0db1c4d1e98439de3.zip
kerberize (again)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1786 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/include/krb5/rsa-md4.h')
-rw-r--r--src/include/krb5/rsa-md4.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/include/krb5/rsa-md4.h b/src/include/krb5/rsa-md4.h
index ed38f8cbb9..71c4c93be4 100644
--- a/src/include/krb5/rsa-md4.h
+++ b/src/include/krb5/rsa-md4.h
@@ -1,4 +1,29 @@
/*
+ * $Source$
+ * $Author$
+ * $Id$
+ *
+ * Copyright 1991 by the Massachusetts Institute of Technology.
+ * All Rights Reserved.
+ *
+ * For copying and distribution information, please see the file
+ * <krb5/copyright.h>.
+ *
+ * RSA MD4 header file, with Kerberos/STDC additions.
+ */
+
+#ifndef __KRB5_RSA_MD4_H__
+#define __KRB5_RSA_MD4_H__
+
+/* 4 words of buffer, plus 8 bytes of count */
+#define RSA_MD4_CKSUM_LENGTH (4*sizeof(krb5_int32)+8)
+#define RSA_MD4_DES_CKSUM_LENGTH (4*sizeof(krb5_int32)+8)
+
+extern krb5_checksum_entry
+ rsa_md4_cksumtable_entry,
+ rsa_md4_des_cksumtable_entry;
+
+/*
**********************************************************************
** md4.h -- Header file for implementation of MD4 **
** RSA Data Security, Inc. MD4 Message Digest Algorithm **
@@ -31,8 +56,12 @@
**********************************************************************
*/
+#ifdef BITS32
/* typedef a 32 bit type */
typedef unsigned long int UINT4;
+#else
+ error: you gotta fix this implementation to deal with non-32 bit words;
+#endif
/* Data structure for MD4 (Message Digest) computation */
typedef struct {
@@ -42,12 +71,19 @@ typedef struct {
unsigned char digest[16]; /* actual digest after MD4Final call */
} MD4_CTX;
+#ifdef __STDC__
+extern void MD4Init(MD4_CTX *);
+extern void MD4Update(MD4_CTX *, unsigned char *, unsigned int);
+extern void MD4Final(MD4_CTX *);
+#else
void MD4Init ();
void MD4Update ();
void MD4Final ();
+#endif
/*
**********************************************************************
** End of md4.h **
******************************* (cut) ********************************
*/
+#endif /* __KRB5_RSA_MD4_H__ */