rust-bitcoin-unsafe-fast/hashes/src
Tobin C. Harding 8dcecfc144
Remove midstate from the GeneralHash and HashEngine traits
Midstates are not generic objects; they don't have universal
cryptographic properties and if you are using them you should be using a
specific midstate type. Therefore it shouldn't be part of `GeneralHash` or
`HashEngine`. Furthermore, in practice it seems like `sha2` midstates are
the only ones that anybody uses, at least in bitcoin.

Remove the midstate stuff from the `GeneralHash` and `HashEngine`
traits. Keep the `midstate` functionality as inherent functions if it is
used internally. Keep the functionality on `sha256` as inherent public
functions.
2024-07-13 07:59:33 +10:00
..
cmp.rs hashes: Introduce SPDX license identifiers 2023-05-01 09:26:36 +10:00
hash160.rs Remove midstate from the GeneralHash and HashEngine traits 2024-07-13 07:59:33 +10:00
hkdf.rs 2024-07-07 automated rustfmt nightly 2024-07-07 01:10:59 +00:00
hmac.rs Remove midstate from the GeneralHash and HashEngine traits 2024-07-13 07:59:33 +10:00
impls.rs hashes: Strongly type the hash160::HashEngine 2024-07-09 13:30:20 +10:00
internal_macros.rs hashes: Use $crate in macro 2024-07-12 12:55:22 +10:00
lib.rs Remove midstate from the GeneralHash and HashEngine traits 2024-07-13 07:59:33 +10:00
ripemd160.rs Remove midstate from the GeneralHash and HashEngine traits 2024-07-13 07:59:33 +10:00
serde_macros.rs Removed //! spare line at end of headers 2024-05-22 12:00:25 +01:00
sha1.rs Remove midstate from the GeneralHash and HashEngine traits 2024-07-13 07:59:33 +10:00
sha256.rs Remove midstate from the GeneralHash and HashEngine traits 2024-07-13 07:59:33 +10:00
sha256d.rs Remove midstate from the GeneralHash and HashEngine traits 2024-07-13 07:59:33 +10:00
sha256t.rs hashes: stop exposing engine/from_engine and general hashing methods in hash_newtype 2024-06-24 13:58:05 +00:00
sha384.rs Remove midstate from the GeneralHash and HashEngine traits 2024-07-13 07:59:33 +10:00
sha512.rs Remove midstate from the GeneralHash and HashEngine traits 2024-07-13 07:59:33 +10:00
sha512_256.rs Remove midstate from the GeneralHash and HashEngine traits 2024-07-13 07:59:33 +10:00
siphash24.rs Remove midstate from the GeneralHash and HashEngine traits 2024-07-13 07:59:33 +10:00
util.rs hashes: stop exposing engine/from_engine and general hashing methods in hash_newtype 2024-06-24 13:58:05 +00:00