Constant ssdeep::BlockHash::FULL_SIZE

source ·
pub const FULL_SIZE: usize = 64;
Expand description

The maximum size of each block hash.

ssdeep is a fuzzy hash. We should be able to easily interchange the hash value and storing 6-bit hash values for all pieces is not useful enough. This constant limits the number of “pieces” to store in each block hash.

Note that, since ssdeep is not a cryptographic hash, it’s important to limit the size of the block hash to prevent an adversary to generate a number of “pieces” by placing an adversarial pattern (that would make the resulting hash huge if the size of the block hash is not limited properly).