sphlib

sph_md4.h

Go to the documentation of this file.
00001 /* $Id: sph_md4.h 216 2010-06-08 09:46:57Z tp $ */
00041 #ifndef SPH_MD4_H__
00042 #define SPH_MD4_H__
00043 
00044 #include <stddef.h>
00045 #include "sph_types.h"
00046 
00050 #define SPH_SIZE_md4   128
00051 
00062 typedef struct {
00063 #ifndef DOXYGEN_IGNORE
00064         unsigned char buf[64];    /* first field, for alignment */
00065         sph_u32 val[4];
00066 #if SPH_64
00067         sph_u64 count;
00068 #else
00069         sph_u32 count_high, count_low;
00070 #endif
00071 #endif
00072 } sph_md4_context;
00073 
00079 void sph_md4_init(void *cc);
00080 
00089 void sph_md4(void *cc, const void *data, size_t len);
00090 
00100 void sph_md4_close(void *cc, void *dst);
00101 
00113 void sph_md4_comp(const sph_u32 msg[16], sph_u32 val[4]);
00114 
00115 #endif