RustCrypto / hashes

Collection of cryptographic hash functions written in pure Rust
1.89k stars 257 forks source link

Implement SerializableState for hashes #574

Closed baloo closed 8 months ago

baloo commented 8 months ago

This is a rebase of #385 on master.

https://github.com/RustCrypto/traits/pull/1369 introduced a SerializableState trait to serialize the hasher. This implements it for each of the hashers we have.

This depends on:

baloo commented 8 months ago

cc @rpiasetskyi

Edit: The github UI is a bit confusing. I tried my best to keep your authorship, and I think individual commits should reflect that, but the github UI only lists me.

wiktor-k commented 8 months ago

This PR solves the issue with using SerializableState in my project that I've reported in https://github.com/RustCrypto/traits/pull/1369#issuecomment-1907992501

Thanks for your work @baloo :pray: !