Is it possible to update a hash incrementally?
Crypto-Spartan opened this issue · 2 comments
Crypto-Spartan commented
Hi! Thank you for you work to port XXHash to Rust!
I would like to use this crate to hash large files that could be multiple gigabytes in size. Since it isn't practical to read the entire file into memory, my plan was to use a ReadBuf to read the file in chunks.
The Blake3 hashing algorithm allows for incremental updating of the hash with chunks of data. (See here)
I don't need the cryptographic security that Blake3 provides and I would rather use XXHash since it can process data much faster. Is something like this possible with twox-hash?
shepmaster commented
shepmaster commented
Assuming this answers your question