Added -Wall to CFLAGS
[mx3r.git] / util.h
blobb84ed66e3536bd7e0a8416bd4d62f2b38c08b662
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 typedef struct structhashblock {
14 int line1;
15 int line2;
16 int size;
17 } hashblock;
19 void reducetext(char * txt);
20 unsigned int ihash(char *txt);
21 unsigned int *hash_loadfile(char *filename, int *size);
22 char *loadfile(char *filename, int *size);
24 int compare2hashvectors(int *Bvector, int Bsize, int *Mvector, int Msize,
25 int MaxPassSize, hashblock *blocks, int blocksize);
27 int loadsplitplugin(void);
29 #endif