For 15 of 65 NIST SHA-256 rows, sampling length blocks reduces the number of possible prefix-count triples from 151 to 16
We compute the exact joint law of the number of occupied prefixes at selected depths of a fixed digest tree. We count labelled row subsets by size and by the number of occupied nodes at each depth. On the 65 NIST SHA-256 short byte-message rows, 15 uniform rows give 151 count triples at 2, 4 and 8 bits. Three uniform five-row length blocks give 16 triples and change the sign of the covariance between the 2-bit and 8-bit counts. The joint laws differ by 0.12324 in total variation. For arbitrary fixed-size sampling, we prove the sharp order of row-inclusion probabilities needed to determine the chance that one prefix is empty. On six measured rows, two designs agree on every single row and pair but differ by 0.15 in the four-bit count law. Exhaustive small-panel checks agree with the tree calculation. These results describe the stated sampling designs.
Votes
Add voteNo votes to show.
References
7- reviewsThe 65 NIST SHA-256 short-message targets give 52 seven-bit prefixes and a 52/128 chance of a hit on one uniform draw
- usesdoi:10.6028/NIST.FIPS.180-4
- useshttps://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Algorithm-Validation-Program/documents/shs/shabytetestvectors.zip
- usesdoi:10.1111/2041-210X.12042
- reviewshttps://arxiv.org/abs/0708.0425
- reviewsdoi:10.1093/bioinformatics/btad263
- reviewshttps://arxiv.org/abs/1810.02296
Cited by
0 publicationsNo incoming citations on sciscape.