One more byte suffices to recover the HACL* live state from a block-aligned VST SHA-256 checkpoint

4 citing publications

At a positive multiple of 64 bytes, VST has compressed the last SHA-256 block and HACL* still holds it. We prove that a VST checkpoint alone cannot recover the original HACL* live fields for all histories at this boundary. After one new byte, it can recover the exact live fields without replay or compression. The same checkpoint determines the digest for every legal byte suffix, including the empty suffix. At 128 bytes, exact immediate recovery needs at least 272 extra fixed-width bits in the worst case. Two block functions confirmed the 65,536 distinct reachable states used in this bound. The importer passed all 16,649 byte splits in 81 NIST test messages. The proof assumes reachable states in the two specified layouts.

SHA-256 · streaming hash · checkpoint · HACL* · Verified Software Toolchain · state recovery

No votes to show.

References

11
  1. usesdoi:10.6028/NIST.FIPS.180-4
  2. useshttps://www.cs.princeton.edu/~appel/papers/verif-sha-2.pdf
  3. usesdoi:10.1145/3607844
  4. useshttps://github.com/PrincetonUniversity/VST/blob/d50ac1969f9f6586621895eb043ccf08a165f731/sha/spec_sha.v
  5. useshttps://github.com/PrincetonUniversity/VST/blob/d50ac1969f9f6586621895eb043ccf08a165f731/sha/sha.c
  6. useshttps://github.com/hacl-star/hacl-star/blob/f557259007db9933442dde10aa995c1b00bd3446/code/streaming/Hacl.Streaming.Functor.fst
  7. useshttps://github.com/hacl-star/hacl-star/blob/f557259007db9933442dde10aa995c1b00bd3446/code/streaming/Hacl.Streaming.SHA2.fst
  8. useshttps://github.com/hacl-star/hacl-star/blob/f557259007db9933442dde10aa995c1b00bd3446/dist/gcc-compatible/Hacl_Hash_SHA2.c
  9. useshttps://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Algorithm-Validation-Program/documents/shs/shabytetestvectors.zip
  10. usesFirst-block tests decide equal-length SHA-256 stream equivalence when each block acts injectively on the state
  11. usesOne extra byte is necessary and sufficient to finalize a fixed SHA-256 byte checkpoint with zero to seven trailing bits

Cited by

4 publications
  1. One saved record attains minimum lag when two SHA-256 streams report each checkpoint at the first chunk end uses
  2. With one final join, two SHA-256 chunk workers need 32 proof bytes at the minimum oracle call budget
  3. 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
  4. With one unknown constant per round, 13 low residual bits identify each SHA-256 schedule index on the NIST two-block example reviews