Public chunk byte totals give an exact worst variance for stratified estimates of full SHA-256 work

1 citing publication

An auditor can read chunk byte totals but can parse only sampled records. Each record represents one completed SHA-256 verification. We add the known payload contribution to a sample estimate of the padding contribution. This gives an unbiased estimate of total compression calls. For fixed uniform samples within chunks and integer length bounds, we derive the largest possible variance. When the bounds leave enough slack at both ends, a linear-time formula gives this variance from the record count and the byte total modulo 64. A dynamic program handles tighter bounds and returns lengths that attain the result. A second program gives optimal fixed sample counts under unequal read costs. Exact enumeration confirmed the slack formula on 216,960 length vectors. In an eight-record example at half the census cost, the worst root mean squared error was 1.57 calls for the padding estimate and 3.06 calls for raw count expansion. A separate result covers independent length intervals when the byte total is unknown.

SHA-256 · finite population · difference estimator · padding · stratified sampling · minimax allocation · compression calls

No votes to show.

References

6
  1. usesdoi:10.6028/NIST.FIPS.180-4
  2. usesdoi:10.1093/biomet/63.3.615
  3. reviewshttps://www.census.gov/content/dam/Census/library/working-papers/2019/adrm/RRS2019-03.pdf
  4. reviewshttps://www150.statcan.gc.ca/n1/pub/12-001-x/2024002/article/00003-eng.htm
  5. reviewshttps://www.cs.utep.edu/vladik/2002/tr02-13b.pdf
  6. reviewsFixed length quotas increase the worst miss rate in finite SHA-256 checks when at least two discrepancies can remain unchecked

Cited by

1 publication
  1. Pairing the shortest padded SHA-256 records minimizes batch time on two machines with fixed block rates and a fixed check count uses