Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00025 #ifndef _MD4_H
00026 #define _MD4_H
00027
00028 #include "beecrypt/beecrypt.h"
00029
00033 #ifdef __cplusplus
00034 struct BEECRYPTAPI md4Param
00035 #else
00036 struct _md4Param
00037 #endif
00038 {
00041 uint32_t h[4];
00044 uint32_t data[16];
00049 #if (MP_WBITS == 64)
00050 mpw length[1];
00051 #elif (MP_WBITS == 32)
00052 mpw length[2];
00053 #else
00054 # error
00055 #endif
00056
00060 uint32_t offset;
00061 };
00062
00063 #ifndef __cplusplus
00064 typedef struct _md4Param md4Param;
00065 #endif
00066
00067 #ifdef __cplusplus
00068 extern "C" {
00069 #endif
00070
00074
00075 extern BEECRYPTAPI const hashFunction md4;
00076
00083 BEECRYPTAPI
00084 void md4Process(md4Param* mp)
00085 ;
00086
00093 BEECRYPTAPI
00094 int md4Reset (md4Param* mp)
00095 ;
00096
00105 BEECRYPTAPI
00106 int md4Update (md4Param* mp, const byte* data, size_t size)
00107 ;
00108
00116 BEECRYPTAPI
00117 int md4Digest (md4Param* mp, byte* digest)
00118 ;
00119
00120 #ifdef __cplusplus
00121 }
00122 #endif
00123
00124 #endif