libffuzzy  2.1.2
Fast ssdeep comparison library
 All Data Structures Files Functions Variables Macros
Data Fields
ffuzzy_digest Struct Reference

The type to store ssdeep digest after parsing. More...

#include <ffuzzy.h>

Data Fields

size_t len1
 Digest length for first block of the digest.
 
size_t len2
 Digest length for second block of the digest.
 
unsigned long block_size
 Block size of the ssdeep digest. More...
 
char digest [FFUZZY_SPAMSUM_LENGTH *2]
 Digest buffer for both blocks of the digest. More...
 

Detailed Description

The type to store ssdeep digest after parsing.

This structure contains all information in the ssdeep digest in machine-friendly format. You can accelerate comparing fuzzy hashes by storing this type first.

See also
ffuzzy_read_digest(ffuzzy_digest*, const char*)
ffuzzy_compare_digest(const ffuzzy_digest*, const ffuzzy_digest*)

Field Documentation

ffuzzy_digest::block_size

Block size of the ssdeep digest.

Technically, this is the block size of first block of the digest. Block size of the second block is twice as this.

ffuzzy_digest::digest

Digest buffer for both blocks of the digest.

This buffer stores the digest in a compressed form. From the beginning, the buffer is formed like this:

  • len1-sized characters of the first block
  • len2-sized characters of the second block

Valid blocks in the buffer do not contain sequences of four or more identical characters.


The documentation for this struct was generated from the following file: