X-Git-Url: http://git.jankratochvil.net/?p=tac_plus.git;a=blobdiff_plain;f=md4.h;fp=md4.h;h=38d0a81c2f64fa6f6f8a401752c29aa4131850b5;hp=d8212296ef16820c175a964fc5f78391879c6d49;hb=413c510553a773cd16e2b538e4a208b4c4d9f775;hpb=a296ccf128acec69a7db2312ebcc231cd18e5944 diff --git a/md4.h b/md4.h index d821229..38d0a81 100644 --- a/md4.h +++ b/md4.h @@ -1,4 +1,11 @@ -/* +#ifndef MD4_H +#define MD4_H 1 + +#include "tac_plus.h" + +#ifdef MSCHAP + +/* Copyright (c) 1995-1998 by Cisco systems, Inc. Permission to use, copy, modify, and distribute this software for @@ -42,8 +49,6 @@ documentation and/or software. */ -#ifndef _MD4_H_ -#define _MD4_H_ /* MD4 context. */ typedef struct MD4Context { unsigned long int state[4]; /* state (ABCD) */ @@ -51,11 +56,12 @@ typedef struct MD4Context { unsigned char buffer[64]; /* input buffer */ } MD4_CTX; -void MD4Init(); -void MD4Update(); -void MD4Final(); -char * MD4End(); -char * MD4File(); -char * MD4Data(); -#endif /* _MD4_H_ */ +extern void MD4Init TAC_ARGS((MD4_CTX *context)); +extern void MD4Update TAC_ARGS((MD4_CTX *context, const unsigned char *input, unsigned int inputLen)); +extern void MD4Final TAC_ARGS((unsigned char digest[16], MD4_CTX *context)); + + +#endif /* MSCHAP */ + +#endif /* MD4_H */