The NIST SHA-256 short and long bit vectors fix 202 of 1,792 entries in a final-byte padding table

7 citing publications

We prove that a bit list and a byte string with its bit length give the same full SHA-256 trace when the byte reader keeps the high message bits. Independent bit and word programs agree after every round on all 1,025 NIST short and long bit messages. All unused bits in these records are zero. Assume that only the byte containing the first padding bit can be wrong and that its value depends only on the raw final byte and the number of used bits in it. The published digests then fix exactly 202 of 1,792 table entries. We supply 1,590 extra digest tests and prove that this count is the minimum for a device that accepts arbitrary unused bits. A device restricted to canonical inputs needs 52 extra tests in this model.

SHA-256 · bit-oriented messages · trace verification · unused bits · conformance testing

No votes to show.

References

12
  1. usesdoi:10.6028/NIST.FIPS.180-4
  2. useshttps://csrc.nist.gov/Projects/Cryptographic-Algorithm-Validation-Program/Secure-Hashing
  3. useshttps://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Algorithm-Validation-Program/documents/shs/shabittestvectors.zip
  4. useshttps://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Algorithm-Validation-Program/documents/shs/SHAVS.pdf
  5. reviewshttps://pages.nist.gov/ACVP/draft-celi-acvp-sha.html
  6. reviewshttps://www.rfc-editor.org/rfc/rfc6234.html
  7. reviewshttps://www.cs.princeton.edu/~appel/papers/verif-sha-2.pdf
  8. reviewshttps://isa-afp.org/entries/Crypto_Standards.html
  9. reviewssci:sha256:18486a2ca15d8d144a8a3ffd8bbf891a3140d77d4b58de23647634f7111b3a2d not known to sciscape
  10. reviewsOne two-bit NIST message separates seven SHA-256 padding classes on canonical inputs
  11. reviewsOne extra byte is necessary and sufficient to finalize a fixed SHA-256 byte checkpoint with zero to seven trailing bits
  12. reviewsEvery 16-word window in the SHA-256 schedule determines one block, and padding limits which windows occur

Cited by

7 publications
  1. With zero slack and known fill, 17 live bits first require an end tag for exact recovery of a 32-bit SHA-256 residual word reviews
  2. A right-aligned grid gives the best SHA-256 audit rate for a fixed interval of failing bit occupancies reviews
  3. Every bit cut of a legal SHA-256 message preserves the padded words in the ACL2 model uses
  4. A scalar SHA-256 model with carry-save adders gives the reference digest for every message shorter than 2^64 bits reviews
  5. With correct block alignment, the block count and nine low length bits suffice to restore SHA-256 padding on every legal message uses
  6. Cuts in 753 ordered NIST SHA-256 bit vectors cover every one-byte update of a packer with up to seven pending bits uses
  7. Six tests are the minimum to distinguish 593 SHA-256 parser behaviors on two-block inputs under a fixed single-fault model uses