One known word erasure preserves length for one-block SHA-256 messages. With hidden prefixes, either erased length word causes ambiguity

1 citing publication

The observer sees 15 indexed words of the last padded SHA-256 block. For one padded block, each observation determines the original bit length. With an unknown number of earlier blocks, erasing a body word still leaves one length. Erasing the high length word leaves exactly 2^32 legal lengths. Erasing the low word leaves 2^23 lengths when the marker is in the final block and 2^29 when it is in the preceding block. We prove the classification for every bit length below 2^64 and give a pair of zero messages for each compatible pair of distinct lengths. Two padding implementations check the concrete examples. The result concerns length recovery before compression.

SHA-256 · padding · word erasure · length recovery · bit strings

No votes to show.

References

7
  1. usesdoi:10.6028/NIST.FIPS.180-4
  2. reviewshttps://www.rfc-editor.org/rfc/rfc6234.html
  3. reviewshttps://isa-afp.org/browser_info/current/AFP/Crypto_Standards/FIPS180_4.html
  4. reviewsdoi:10.1007/978-3-642-02620-1_12
  5. usesFor uniform SHA-256 messages of known length, the final block loses 447 bits of min-entropy at residue 448
  6. reviewsOne schedule bit separates 31-byte and 32-byte SHA-256 messages without the length words. Three expanded words require degree two for exact separation
  7. reviewsTwo word deletions preserve the SHA-256 message through 54 bytes and allow exactly two collision families through 55 bytes

Cited by

1 publication
  1. With the final delimiter position, SHA-256 length bytes 0 and 2 give more records overall than bytes 0 and 1, but fewer below 65,536 bits uses