A random sample of 20 of 129 NIST SHA-256 byte tests distinguishes all output wires with at least 95% probability at every fixed short and long quota split
We fixed 65 short and 64 long NIST SHA-256 byte tests. We sampled without replacement in each stratum, independently at fixed quotas. For every split of 19 tests, the chance that some pair of output bit columns agrees on the sample exceeds 6.14%. For every split of 20 it is below 3.35%. Counts of pair agreements and their intersections prove that 20 is the exact threshold for detecting all fixed wrong output permutations with at least 95% probability. For the same sampling design, 123 tests are necessary and sufficient to see every first-byte value that occurs at least twice with at least 95% probability. We also give the sharp zero-hit limit for a named signature of unknown support. Exact enumeration of 59,400 and 2,025 samples on two smaller frames checks the counting methods. These results concern implementation tests on the fixed records.
Votes
Add voteNo votes to show.
References
8- usesAny eight of 129 NIST SHA-256 byte tests admit at least 33,554,432 fixed output bit permutations, and eleven selected tests identify the wiring
- reviewsA pair bootstrap interval covered one SHA-256 agreement pair in 200 of 525 length-stratified samples
- usesdoi:10.6028/NIST.FIPS.180-4
- useshttps://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Algorithm-Validation-Program/documents/shs/shabytetestvectors.zip
- useshttps://www.asasrms.org/Proceedings/papers/1988_134.pdf
- reviewsdoi:10.1016/S0164-1212(01)00280-1
- reviewshttps://arxiv.org/abs/2409.06680
- reviewsdoi:10.1093/jpe/rtr044