Type Alias ssdeep::RawFuzzyHash
source · pub type RawFuzzyHash = FuzzyHashData<{ block_hash::FULL_SIZE }, { block_hash::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.
You may use DualFuzzyHash instead when you want
to both speed up the comparison and preserve the original contents.
Usually, all fuzzy hashes you would handle are
(not literally)
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).
Aliased Type§
struct RawFuzzyHash { /* private fields */ }