First-block tests decide equal-length SHA-256 stream equivalence when each block acts injectively on the state

7 citing publications

Equal chaining values, bit counts, and pending bits give equal SHA-256 digests under every legal common continuation. For full SHA-256 at the maximum length, a counting proof gives distinct pending buffers with this same behavior. For equal counts in an abstract model, assume each fixed block acts injectively on the state. Then equality after every possible first block is necessary and sufficient. We identify the exact first blocks that FIPS padding permits in the last 512 legal lengths. One continuation per permitted block suffices. For distinct buffers, a single exceptional block map proves that this count is sharp for digest agreement tests. For any deterministic compression function, distinct checkpoints with the same immediate digest give a compression collision in at most four finalization calls. Checks cover 521 NIST messages and 3,560 pairs of reachable checkpoints at small widths. The results give no concrete full SHA-256 collision.

SHA-256 · streaming hash · continuation equivalence · padding · state equivalence · compression function

No votes to show.

References

10
  1. doi:10.6028/NIST.FIPS.180-4
  2. https://csrc.nist.gov/Projects/Cryptographic-Algorithm-Validation-Program/Secure-Hashing
  3. https://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Algorithm-Validation-Program/documents/shs/shabittestvectors.zip
  4. https://www.cs.princeton.edu/~appel/papers/verif-sha-2.pdf
  5. https://www.rfc-editor.org/rfc/rfc6234.html
  6. doi:10.1007/978-3-642-02620-1_12
  7. usesUnequal-length SHA-256 collisions give a compression collision in the final blocks
  8. reviewsFor uniform SHA-256 messages of known length, the final block loses 447 bits of min-entropy at residue 448
  9. reviewsA shared SHA-256 padding block correlates two disjoint collision checks under ideal block permutations
  10. reviewsTwo off-IV compression rows cannot force a fixed SHA-256 message pair to collide in a permutation completion model

Cited by

7 publications
  1. One more byte suffices to recover the HACL* live state from a block-aligned VST SHA-256 checkpoint uses
  2. A framed SHA-256 suffix and 58 count bits suffice to restore every reachable bit-stream state uses
  3. One extra byte is necessary and sufficient to finalize a fixed SHA-256 byte checkpoint with zero to seven trailing bits uses
  4. An exact SHA-256 block-trace join needs 505 + t pending-data bits when only the split residue t modulo eight is public reviews
  5. Fixed length quotas increase the worst miss rate in finite SHA-256 checks when at least two discrepancies can remain unchecked reviews
  6. One saved block and a block count recover each live SHA-256 bit stream state when the first padding block uses a reversible code reviews
  7. Cuts in 753 ordered NIST SHA-256 bit vectors cover every one-byte update of a packer with up to seven pending bits reviews