rust-bitcoin-unsafe-fast/hashes/src
merge-script 3748bfcd66
Merge rust-bitcoin/rust-bitcoin#4289: [hashes] Disable fixed-time equality cmp when building for fuzzers, use fixed-time equality for `Hmac`
2d9e240fb6 [hashes] Use `fixed_time_eq` for `Hmac::eq` (Matt Corallo)
7ac7273013 [hashes] Disable fixed-time equality cmp when building for fuzzers (Matt Corallo)

Pull request description:

  Fuzzers want to break memcmp calls into separate comparisons for coverage monitoring, allowing them to not-quite-brute-force find inputs that fully match. Thus, we disable our fancy fixed-time comparison when built with the `hashes_fuzz` cfg.

ACKs for top commit:
  Kixunil:
    ACK 2d9e240fb6
  apoelstra:
    ACK 2d9e240fb6ae13e6139713f9bb8ccb51e5dc0bff; successfully ran local tests

Tree-SHA512: 372e344ae5497a10ca03a50baadb9d2e8a6dac914bbc4ca91fd5c9b839fb036f42c8b47c252ca3466c15286e889a6f5b51390cc0d938ba24dc50b13e8b863463
2025-03-28 23:31:40 +00:00
..
hash160 Remove unused trait import 2025-03-06 11:47:29 +11:00
hkdf Bound HmacEngine on HashEngine 2025-03-06 11:47:26 +11:00
hmac [hashes] Use `fixed_time_eq` for `Hmac::eq` 2025-03-28 13:49:00 +00:00
ripemd160 2025-03-16 automated rustfmt nightly 2025-03-16 01:25:25 +00:00
sha1 2025-03-16 automated rustfmt nightly 2025-03-16 01:25:25 +00:00
sha256 chore: fix some typos in comment 2025-03-26 21:03:03 +08:00
sha256d Bound HmacEngine on HashEngine 2025-03-06 11:47:26 +11:00
sha256t Unify/reduce usage of `unsafe` 2025-03-27 20:15:37 +01:00
sha384 Bound HmacEngine on HashEngine 2025-03-06 11:47:26 +11:00
sha512 2025-03-16 automated rustfmt nightly 2025-03-16 01:25:25 +00:00
sha512_256 Bound HmacEngine on HashEngine 2025-03-06 11:47:26 +11:00
siphash24 Bound HmacEngine on HashEngine 2025-03-06 11:47:26 +11:00
cmp.rs [hashes] Disable fixed-time equality cmp when building for fuzzers 2025-03-28 12:05:23 +00:00
error.rs Remove usage of impl_from_infallible in leaf crates 2025-01-02 07:51:21 +11:00
internal_macros.rs Unify/reduce usage of `unsafe` 2025-03-27 20:15:37 +01:00
lib.rs hashes: Remove the GeneralHash trait 2025-03-06 11:47:29 +11:00
macros.rs Remove From<newtype> for $hash 2025-03-21 09:12:26 +11:00