Type Definition ssdeep::RawFuzzyHash
source · pub type RawFuzzyHash = FuzzyHashData<{ BlockHash::FULL_SIZE }, { BlockHash::HALF_SIZE }, false>;Expand description
Regular (truncated) raw fuzzy hash type.
This type has a short (truncated) and non-normalized raw form so this type is the best fit to preserve the original string representation of a fuzzy hash.
This is also the default type of the fuzzy hash generator output because (by default) the generator does not normalize the resulting fuzzy hash.
See also: FuzzyHashData
Alternative Types
Comparison functions/methods require that the input is normalized.
To prevent excess normalization, FuzzyHash is recommended for comparison.
Usually, all fuzzy hashes you would handle are truncated, meaning the second
half of two block hashes are truncated to the half size of the maximum size
of the first half. But if you pass the FUZZY_FLAG_NOTRUNC flag to the
fuzzy_digest function (libfuzzy), the result will be a non-truncated,
long form. If you want to handle such fuzzy hashes, use LongFuzzyHash
(instead of FuzzyHash) and/or LongRawFuzzyHash (instead of RawFuzzyHash).