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.
11 #define MAX_LOADED_LINES 8096
13 typedef struct structhashblock
{
19 typedef struct struct_BLRintA
{
20 int *base
,*local
,*remote
;
21 int basesz
,localsz
,remotesz
;
24 void reducetext(char * txt
);
25 unsigned int ihash(char *txt
);
26 unsigned int *hash_loadfile(char *filename
, int *size
);
27 char *loadfile(char *filename
, int *size
);
29 int compare2hashvectors(int *Bvector
, int Bsize
, int *Mvector
, int Msize
,
30 int MinPassSize
, int MaxPassSize
, hashblock
*blocks
, int blocksize
);
32 int compare2bytevectors(char *Bvector
, int Bsize
, char *Mvector
, int Msize
,
33 int MinPassSize
,int MaxPassSize
, hashblock
*blocks
, int blocksize
);
35 int loadsplitplugin(void);
36 BLRintA
splitBLR(char *base
, char *local
, char *remote
);
37 BLRintA
hashBLR(void);