Changing the digest group of a Δ-universal hash family #
An injective additive map f : Y →+ Z applied to every digest preserves ε-Δ-universality: the
difference of two digests is d' exactly when the difference of their images is f d', and a
difference outside the range of f never occurs. A hash proved Δ-universal over a field therefore
stays Δ-universal when its digests are written as bit strings by an additive encoding, where the
difference is XOR.
Reinterpreting canonical residues modulo a larger modulus also preserves the bound when each target difference comes from at most one integer difference of source representatives. For a smaller modulus, a union bound counts the possible source differences.
Main results #
Cslib.Probability.IsDeltaUniversalHash.postcompose: an injective additive map on digests preservesε-Δ-universality.Cslib.Probability.IsDeltaUniversalHash.zmod_cast: a sufficiently large target modulus preservesε-Δ-universality when canonical residues are reinterpreted in it.Cslib.Probability.IsDeltaUniversalHash.zmod_cast_boundandCslib.Probability.IsDeltaUniversalHash.zmod_cast_div: bounds after reducing canonical source representatives modulo the target modulus.
An injective additive map on digests preserves ε-Δ-universality.
Transferring canonical residues from ZMod p to ZMod N preserves the difference bound
when N is greater than twice the largest source representative. This gives Exercise 7.22(a)
of [BS23], v0.6, printed p. 283, under the slightly weaker condition
2 * (p - 1) < N and for an arbitrary seed law.
Reducing canonical residues modulo N scales the difference bound by at most
2 * (p / N + 1). This is the first bound of Exercise 7.22(b) ([BS23], v0.6,
printed p. 283). The proof allows any positive moduli and any seed law.
A difference bound α / p becomes 4 * α / N when reducing to N ≤ p
([BS23], v0.6, Exercise 7.22(b), printed p. 283).