70 #define FUZZY_FLAG_ELIMSEQ 0x1u    75 #define FUZZY_FLAG_NOTRUNC 0x2u   121                         const unsigned char *buffer,
   214 extern int fuzzy_compare(
const char *sig1, 
const char *sig2);
   217 #define SPAMSUM_LENGTH 64   221 #define FUZZY_MAX_RESULT (2 * SPAMSUM_LENGTH + 20) int fuzzy_hash_stream(FILE *handle, char *result)
Compute the fuzzy hash of a stream using an open handle. 
Definition: fuzzy.c:538
 
int fuzzy_digest(const struct fuzzy_state *state, char *result, unsigned int flags)
Obtain the fuzzy hash from the state. 
Definition: fuzzy.c:360
 
int fuzzy_update(struct fuzzy_state *state, const unsigned char *buffer, size_t buffer_size)
Feed the data contained in the given buffer to the state. 
Definition: fuzzy.c:323
 
struct fuzzy_state * fuzzy_clone(const struct fuzzy_state *state)
Create a copy of a fuzzy_state object and return it. 
Definition: fuzzy.c:169
 
void fuzzy_free(struct fuzzy_state *state)
Dispose a fuzzy state. 
Definition: fuzzy.c:495
 
int fuzzy_hash_filename(const char *filename, char *result)
Compute the fuzzy hash of a file. 
Definition: fuzzy.c:592
 
int fuzzy_hash_buf(const unsigned char *buf, uint32_t buf_len, char *result)
Compute the fuzzy hash of a buffer. 
Definition: fuzzy.c:500
 
struct fuzzy_state * fuzzy_new(void)
Construct a fuzzy_state object and return it. 
Definition: fuzzy.c:147
 
int fuzzy_hash_file(FILE *handle, char *result)
Compute the fuzzy hash of a file using an open handle. 
Definition: fuzzy.c:560
 
int fuzzy_compare(const char *sig1, const char *sig2)
Definition: fuzzy.c:852
 
int fuzzy_set_total_input_length(struct fuzzy_state *state, uint_least64_t total_fixed_length)
Set fixed length of input. 
Definition: fuzzy.c:183