For a uniform permutation, distinct pairs with one input XOR have an exact variance correction
For a uniform permutation on N = 2ⁿ states, we counted hits in m distinct unordered pairs with one fixed nonzero input XOR. For any fixed set of accepted differences, the binomial variance with the correct mean needs a multiplier of 1 + 2(m−1)/[(N−2)(N−3)] when N ≥ 4. A raw random function can give a variance error of either sign. Matching counts give every probability in the partial row. For three pairs, the number of XOR triples in the accepted set determines how equal-size sets differ in their all-hit probability. On eight states two sets of size three gave exact probabilities of 3/35 and 11/105. We checked the laws by complete enumeration on four and eight states. The results calibrate ideal controls for fixed-block working-state permutations in SHA-256. Full-hash security is outside the tested scope.
Votes
Add voteNo votes to show.
References
8- doi:10.6028/NIST.FIPS.180-4
- https://csrc.nist.gov/Projects/Cryptographic-Algorithm-Validation-Program/Secure-Hashing
- https://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Algorithm-Validation-Program/documents/shs/shabytetestvectors.zip
- doi:10.1007/3-540-48285-7_31
- https://cs.ru.nl/~joan/papers/JDA_VRI_Stat_2007.pdf
- doi:10.1017/S0963548309990678
- https://arxiv.org/abs/2301.10131
- reviewsFinal carries preserve collision decisions and explain the spread of XOR errors at 32 SHA-256 rounds with a fixed IV