sphlib

sph_panama.h

Go to the documentation of this file.
00001 /* $Id: sph_panama.h 154 2010-04-26 17:00:24Z tp $ */
00057 #ifndef SPH_PANAMA_H__
00058 #define SPH_PANAMA_H__
00059 
00060 #include <stddef.h>
00061 #include "sph_types.h"
00062 
00066 #define SPH_SIZE_panama   256
00067 
00078 typedef struct {
00079 #ifndef DOXYGEN_IGNORE
00080         unsigned char data[32];   /* first field, for alignment */
00081         unsigned data_ptr;
00082 
00083         sph_u32 buffer[32][8];
00084         unsigned buffer_ptr;
00085 
00086         sph_u32 state[17];
00087 #endif
00088 } sph_panama_context;
00089 
00095 void sph_panama_init(void *cc);
00096 
00105 void sph_panama(void *cc, const void *data, size_t len);
00106 
00116 void sph_panama_close(void *cc, void *dst);
00117 
00118 #endif