A 36-bit accumulator suffices and is necessary when SHA-256 reuses the wide E sum once after four rounds

0 citing publications

We prove a range bound for all 64 SHA-256 rounds with an eight-round schedule. A round keeps its E sum as an integer. Four rounds later, the H input can reuse that sum. The first four rounds of each group need at most 35 bits for exact sums. The next four need 36 bits. Four-byte messages at the standard IV prove the minimum widths for both intermediate sums and both updated registers in each phase. A test on four low bits detects when a wide shift-and-OR rotation changes the round state. On abc the first possible failure occurs in round 1, with round numbers starting at zero. All 192 states in the NIST worked examples agree with the safe schedule.

SHA-256 · modular reduction · accumulator width · functional correctness · rotation

No votes to show.

References

6
  1. usesdoi:10.6028/NIST.FIPS.180-4
  2. useshttps://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Standards-and-Guidelines/documents/examples/SHA256.pdf
  3. usesCarry bits determine when a SHA-256 schedule can use wide integer sums at any positive word width
  4. reviewshttps://www.cs.princeton.edu/~appel/papers/verif-sha-2.pdf
  5. reviewshttps://docs.riscv.org/reference/isa/v20240411/unpriv/scalar-crypto.html
  6. reviewsdoi:10.1093/comjnl/bxae116

Cited by

0 publications

No incoming citations on sciscape.