summaryrefslogtreecommitdiff
path: root/fuzzy.c
diff options
context:
space:
mode:
Diffstat (limited to 'fuzzy.c')
-rw-r--r--fuzzy.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/fuzzy.c b/fuzzy.c
index a6e238c..2530872 100644
--- a/fuzzy.c
+++ b/fuzzy.c
@@ -90,12 +90,10 @@ static uint32_t sum_hash(unsigned char c, uint32_t h) {
}
/* A blockhash contains a signature state for a specific (implicit) blocksize.
- * The blocksize is given by the start_blocksize from ssdeep_context times two
- * to the power of the position of the element in the blockhashes member of
- * ssdeep_context (head position = 0). The h and halfh members are the FNV
- * hashes, where halfh stops to be reset after digest is SPAMSUM_LENGTH/2 long.
- * The halfh hash is needed be able to truncate digest for the second output
- * hash to stay compatible with ssdeep output. */
+ * The blocksize is given by SSDEEP_BS(index). The h and halfh members are the
+ * FNV hashes, where halfh stops to be reset after digest is SPAMSUM_LENGTH/2
+ * long. The halfh hash is needed be able to truncate digest for the second
+ * output hash to stay compatible with ssdeep output. */
struct blockhash_context {
uint32_t h, halfh;
char digest[SPAMSUM_LENGTH];