summaryrefslogtreecommitdiff
path: root/fuzzy.h
AgeCommit message (Collapse)Author
2013-03-25implement variants of the hashesHelmut Grohne
FUZZY_FLAG_ELIMSEQ: The comparison operation runs eliminate_sequence before actually comparing two hashes on both of them. This step can be moved to hash generation time using this flag. Suggested by Niels Thykier. FUZZY_FLAG_NOTRUNC: The second part of the hash is truncated to SPAMSUM_LENGTH/2 by default. When comparing two hashes with different blocksize this can result in a larger edit distance and therefore false negatives.
2013-03-24rename functions and export themHelmut Grohne
Use fuzzy_ as a prefix like all of the previous ones. Export fuzzy_new, fuzzy_update, fuzzy_digest and fuzzy_free. These functions are sufficient to put the caller in control and build an API similar to Python's hashlib.
2013-03-24fuzzy.h was missing <stdio.h>Helmut Grohne
Thanks to Niels Thykier.
2013-03-24ship a fuzzy.h compatible with ssdeep's fuzzy.hHelmut Grohne