rust-bitcoin-unsafe-fast/hashes/src
merge-script 50e3465bde
Merge rust-bitcoin/rust-bitcoin#3129: hashes:: Rename const_hash functions
e7762e0612 hashes:: Rename const_hash functions (Tobin C. Harding)

Pull request description:

  There are a number of issues with the two `const_hash` functions in the `sha256` module:

  - The two `const_hash` functions in the `sha256` module differ slightly, one finalizes the hash and one is for computing the midstate.
  - They are inefficient and provided for usage for const context only.

  Fix both issues by renaming the functions as discussed in #3075.

  Close: #3075

ACKs for top commit:
  Kixunil:
    ACK e7762e0612
  apoelstra:
    ACK e7762e0612 successfully ran local tests

Tree-SHA512: 2b765bbbaa596d060a555495582b24175f660bf630de489cf0e0199f1c589f13f46dde5c9735bffece10a1ff116a70472f821df66c62a97fffb424f16e5568f9
2024-08-06 19:15:46 +00: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 Push up the Default bound on HashEngine 2024-07-31 13:13:51 -07:00
hmac.rs Push up the Default bound on HashEngine 2024-07-31 13:13:51 -07:00
impls.rs Push up the Default bound on HashEngine 2024-07-31 13:13:51 -07:00
internal_macros.rs Merge rust-bitcoin/rust-bitcoin#3127: hashes: Call through to trait methods 2024-08-06 16:58:59 +00:00
lib.rs hashes: Add a new hash_reader function 2024-08-06 10:38:57 +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 hashes:: Rename const_hash functions 2024-08-06 12:27:15 +10:00
sha256d.rs Remove midstate from the GeneralHash and HashEngine traits 2024-07-13 07:59:33 +10:00
sha256t.rs Merge rust-bitcoin/rust-bitcoin#3127: hashes: Call through to trait methods 2024-08-06 16:58:59 +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 Rename Siphash::as_u64 to Siphash::to_u64 2024-08-02 18:20:23 -05:00
util.rs Merge rust-bitcoin/rust-bitcoin#3019: Fix error messages 2024-07-16 15:30:26 +00:00