With free block rereads, nine registers suffice and eight fail for ordered emission of all 64 SHA-256 schedule words

2 citing publications

A circuit reads any of the sixteen input words for free. It emits all 64 SHA-256 schedule words in order. One atomic recurrence evaluation can overwrite a register after reading its operands. We prove that the minimum peak with unlimited recomputation is nine 32-bit registers. A backward proof for the last word has six sets that fit in eight registers. A checked nine-register schedule uses 8,519 evaluations. With at most 12 repeats, the exact minimum peak is 16 registers. At 15 registers, at least 13 repeats are necessary and 89 suffice. The result measures schedule storage and recurrence work for one block.

SHA-256 · message schedule · register allocation · pebbling · recomputation · time-space tradeoff

No votes to show.

References

7
  1. usesdoi:10.6028/NIST.FIPS.180-4
  2. reviewshttps://github.com/secworks/sha256/blob/837c5cc396f001d18f2c765721c585716eb439ae/src/rtl/sha256_w_mem.v
  3. reviewshttps://github.com/icedmoca/qSHA256/blob/741fe86b4ebdeac97c41fe0058db1985d723d6e1/qsha256/formal/pebbling.py
  4. reviewsdoi:10.1137/0204020
  5. reviewshttps://proceedings.mlsys.org/paper_files/paper/2020/hash/0b816ae8f06f8dd3543dc3d9ef196cab-Abstract.html
  6. reviewsExact SHA-256 schedule emission needs 512 bits after one block read while at least 512 output bits remain
  7. reviewsFour reserved checkpoints require 36 block layers in a two-worker phase oracle for 12-block SHA-256

Cited by

2 publications
  1. With 15 registers, ten extra word transfers are optimal for ordered SHA-256 expansion when a repeat costs at least two transfers reviews
  2. One pass needs exactly 16 words to emit the SHA-256 schedule in reverse with separate reads and writes reviews