From 139d85874cfbf52a50adbad0db1c4d1e98439de3 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Tue, 26 Feb 1991 13:42:23 +0000 Subject: [PATCH] kerberize (again) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1786 dc483132-0cff-0310-8789-dd5450dbe970 --- src/include/krb5/rsa-md4.h | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/src/include/krb5/rsa-md4.h b/src/include/krb5/rsa-md4.h index ed38f8cbb..71c4c93be 100644 --- a/src/include/krb5/rsa-md4.h +++ b/src/include/krb5/rsa-md4.h @@ -1,3 +1,28 @@ +/* + * $Source$ + * $Author$ + * $Id$ + * + * Copyright 1991 by the Massachusetts Institute of Technology. + * All Rights Reserved. + * + * For copying and distribution information, please see the file + * . + * + * 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 ** @@ -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__ */ -- 2.26.2