Implement std::hash::Hasher trait on Digest#9
Conversation
|
Hi. Before we merge or close this can you provide where is that The main purpose of choosing to use CRC is to be compatible with existing protocols / file format that already uses this for calculating checksum. OTOH, the I don't think CRC makes a good hash table algorithm
(Additionally our reference implementation |
|
I'm using the trait to checksum files (or portions of files) to detect bit rot or mutations without using a cryptographically secure hash for speed purposes. I was following what |
This implements the std::hash::Hasher trait on Digest which allows users of the library to use crc64fast in places where std::hash::Hasher is used. While users of this can use the Newtype pattern and implement this themselves, by implementing this trait it makes it more accessible to users of the crate.