For SHA-256 W16 on raw blocks, the word proof used fewer bytes and the Boolean checks used less RAM

1 citing publication

For every raw 512-bit block, two 16-bit passes with a two-bit boundary carry give all 32 bits of the first SHA-256 expansion word. With one carry bit, the outputs differed by 131,072 on a checked block. The compiled Coq word proof took 11,008 bytes. The direct LRAT proof took 9,093,608 bytes. Reusing a local LRAT proof at 32 checked wire substitutions took 26,406 certificate bytes and required an additional 6,226-byte formula. Median verification times in five runs were 397, 240 and 133 ms. Median peak RAM was 111,052, 36,124 and 34,588 KiB. The timed Coq check trusted its standard library imports. The measurements cover one CPU, one circuit encoding and zero compression rounds.

SHA-256 · message schedule · carry · Coq · LRAT · equivalence checking

No votes to show.

References

8
  1. usesdoi:10.6028/NIST.FIPS.180-4
  2. reviewshttps://www.cs.princeton.edu/~appel/papers/verif-sha-2.pdf
  3. useshttps://arxiv.org/abs/1612.02353
  4. reviewsdoi:10.1145/3763167
  5. useshttps://github.com/marijnheule/drat-trim/tree/2e3b2dc0ecf938addbd779d42877b6ed69d9a985
  6. reviewsCarry-based proof transfer used 5.64 times the proof bytes of direct SAT for one 32-bit SHA-256 schedule update
  7. reviewsFor two clause orders of a SHA-256 schedule word, LRAT conversion paid for itself after two to four checks
  8. reviewsSHA-256 word W16 requires exactly seven binary AND layers for unrestricted blocks with free XOR

Cited by

1 publication
  1. A word proof used 6,305 bytes for SHA-256 W16 with three saved halfword carry flags uses