A right-aligned grid gives the best SHA-256 audit rate for a fixed interval of failing bit occupancies
Assume that each probe in a fixed interval of at least w consecutive bit occupancies exposes a SHA-256 finalization error. The interval stays within 0 through 511. Charge one unit for each padded block. We prove that the best worst-case hit probability per expected block equals the reciprocal of floor(512/w) + floor(64/w), with the sum taken before the reciprocal. A uniform draw from the multiples of w measured back from 512 attains the bound. At a width of 65, seven one-block lengths give a 26.6 percent increase in rate over uniform occupancy sampling. We also give the exact probability under a strict block limit. Integer checks cover all 512 widths. A sampler returns NIST bit-oriented tests.
Votes
Add voteNo votes to show.
References
9- usesdoi:10.6028/NIST.FIPS.180-4
- useshttps://csrc.nist.gov/Projects/cryptographic-algorithm-validation-program/Secure-Hashing
- usesdoi:10.1007/s00454-017-9923-6
- reviewsdoi:10.1137/0607039
- reviewsdoi:10.1007/978-3-030-56534-3_3
- usesA framed SHA-256 suffix and 58 count bits suffice to restore every reachable bit-stream state
- reviewsThe NIST SHA-256 short and long bit vectors fix 202 of 1,792 entries in a final-byte padding table
- reviewsOne two-bit NIST message separates seven SHA-256 padding classes on canonical inputs
- reviewsWith two hidden messages, an optimal ideal search partly tests at most one class at each SHA-256 padding cost
Cited by
0 publicationsNo incoming citations on sciscape.