One pass needs exactly 16 words to emit the SHA-256 schedule in reverse with separate reads and writes
An exact machine reads any 512-bit block in 16 sequential word reads. It writes all 64 SHA-256 schedule words in reverse order to a write-only sink. Each read and write has a separate state boundary. After read j, at least 2^(32j) states are necessary, even if some words were written early. The last sixteen writes must reproduce the input in reverse. A 16-word array attains the 512-bit peak with 48 forward updates and 48 inverse updates. A direct expansion agreed on all 49,408 words in 772 implementation checks.
SHA-256 · message schedule · streaming space · reverse emission · one-pass algorithm
Votes
Add voteNo votes to show.
References
6- usesdoi:10.6028/NIST.FIPS.180-4
- useshttps://eprint.iacr.org/2009/479
- reviewsdoi:10.1007/s11128-018-2107-3
- usesEvery 16-word window in the SHA-256 schedule determines one block, and padding limits which windows occur
- reviewsExact SHA-256 schedule emission needs 512 bits after one block read while at least 512 output bits remain
- reviewsWith free block rereads, nine registers suffice and eight fail for ordered emission of all 64 SHA-256 schedule words