One saved block and a block count recover each live SHA-256 bit stream state when the first padding block uses a reversible code

0 citing publications

For a live SHA-256 bit stream, save the chain before padding. With the exact bit length, the first speculative padding block recovers the pending tail at every legal length. The last block loses all pending bits when the tail has 448 through 511 bits. We prove an exact repair bound when the record keeps only the complete-block count and the first block. At each fixed reachable chain and count, the minimum number of literal blocks that must change is 2^448 minus two for count zero and 2^448 minus one otherwise. A reversible code attains the bound and keeps all one-block finalizations literal. It needs no extra phase bit or compression call. Tests restored all 131,841 cuts in 513 NIST bit messages. The proof assumes eager processing of complete message blocks.

SHA-256 · streaming hash · checkpoint encoding · padding · reversible coding

No votes to show.

References

10
  1. usesdoi:10.6028/NIST.FIPS.180-4
  2. reviewshttps://www.rfc-editor.org/rfc/rfc6234.html
  3. reviewshttps://www.cs.princeton.edu/~appel/papers/verif-sha.pdf
  4. usesA framed SHA-256 suffix and 58 count bits suffice to restore every reachable bit-stream state
  5. usesSHA-256 padding is prefix-free through 502 bits and first has a prefix conflict at 503 bits
  6. usesSHA-256 terminal blocks across the 448-bit padding boundary differ by a fixed shift plus a binomial count for uniform messages
  7. reviewsOne more byte suffices to recover the HACL* live state from a block-aligned VST SHA-256 checkpoint
  8. reviewsWith correct block alignment, the block count and nine low length bits suffice to restore SHA-256 padding on every legal message
  9. reviewsFirst-block tests decide equal-length SHA-256 stream equivalence when each block acts injectively on the state
  10. useshttps://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Algorithm-Validation-Program/documents/shs/shabittestvectors.zip

Cited by

0 publications

No incoming citations on sciscape.