Added util.c.h to the project.
[mx3r.git] / util.h
blob66ffe7e9822abd31fa5b295ea4c5eedfbf24cd46
1 #ifndef __utilh__
2 #define __utilh__
3 // Tipos de hashes :
4 // GCRY_MD_CRC32 - CRC32, sencillo, rápido.
5 // GCRY_MD_SHA1 - SHA1 potente y seguro.
6 #define HASH_TYPE GCRY_MD_SHA1
8 // Establece cual es el ancho máximo de línea para trabajar.
9 // Establecer como mínimo a 90. Recomendado 128 o 256.
10 #define MAX_LINE 1024
11 #define MAX_LOADED_LINES 8096
13 void reducetext(char * txt);
14 unsigned int ihash(char *txt);
15 unsigned int *hash_loadfile(char *filename, int *size);
17 #endif