Two looks at 87 and 89 pairs meet 5% and 10% error limits for first-bit agreement in a fixed SHA-256 population of 256 pairs
In 256 specified SHA-256 message pairs, distinguish at most 128 from at least 160 first-bit matches. The false-high and false-low limits are 5% and 10%. With uniform draws without replacement, no decision based on at most 88 match indicators can meet both limits. A deterministic rule reads 87 pairs and takes two more only after exactly 50 matches. Its endpoint error rates are 0.049514 and 0.098741. Exact enumeration gives 38 feasible double sampling threshold tuples with a cap of 89. One minimizes both endpoint mean costs, at 87.048675 and 87.106381 comparisons. A single fixed threshold needs 90 pairs. Two independent SHA-256 implementations agree on all 512 full digests. Exactly 120 pairs match in the first bit.
SHA-256 · double sampling · hypergeometric distribution · finite population · Pareto frontier · padding boundary
Votes
Add voteNo votes to show.