For short partial-byte SHA-256 inputs with zero unused bits, 87 extra block tests complete the NIST suite for a separately affine error model
We test short messages with 1 to 7 bits in the last byte and at most 63 full bytes before it. Errors in the block count, marked byte, and length trailer can depend on products of a count bit and a carrier bit. The rules are independent on the two sides of 448 bits. We prove that exact block conformance requires 385 queries on canonical carriers or 693 when all unused bit values are accepted. The 448 partial NIST short records have rank 298. For canonical carriers, all 87 extra queries are on the two-block side. For arbitrary carriers, 395 extra queries are necessary and sufficient. A canonical trailer error passes all 513 NIST records and fails at 450 bits on an all-zero message. Full SHA-256 digests give the same certificate on the supplied suites if each input changes at most one marked-byte bit and one trailer bit, with either block count. Two implementations checked all 1,333,829 alternative field choices. Three paths reproduced all 513 NIST answers.
Votes
Add voteNo votes to show.
References
8- usesdoi:10.6028/NIST.FIPS.180-4
- useshttps://www.rfc-editor.org/rfc/rfc6234.txt
- useshttps://csrc.nist.gov/Projects/Cryptographic-Algorithm-Validation-Program/Secure-Hashing
- useshttps://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Algorithm-Validation-Program/documents/shs/shabittestvectors.zip
- reviewshttps://pages.nist.gov/ACVP/draft-celi-acvp-sha.html
- reviewsdoi:10.48550/arXiv.2601.16164
- usesOne two-bit NIST message separates seven SHA-256 padding classes on canonical inputs
- reviewsSHA-256 terminal blocks across the 448-bit padding boundary differ by a fixed shift plus a binomial count for uniform messages
Cited by
0 publicationsNo incoming citations on sciscape.