Past exam of the mathematics course of the University of Cambridge 2004 iii Paper 54 3 Solution Created 2026-10-03 Updated 2026-10-14
Let and choose uniformly from the finite family . All bounds below must hold for every pair of distinct inputs .
A universal hash family, also called universal2, satisfies . A strongly universal hash family satisfiesThus the two outputs are independent and uniform; summing over gives the collision condition. An almost strongly universal hash family permits a larger conditional guessing bound. In the -almost-strongly-universal convention used here,equivalently . Necessarily , with giving strong universality. Stating this normalization matters because the name alone does not specify the allowed forgery probability.
Here is an explicit polynomial almost strongly universal hashing construction and a one-use message authentication protocol. Use a publicly specified finite field , where . Encode a fixed-length -bit message as field elements , padding the final block in a fixed way. Both parties know the length, so this encoding is injective. They share independent uniform secret field elements , requiring shared secret bits. DefineFor every message, the output is uniform because of . For distinct messages and prescribed tags , the condition determines exactly one value of for each . The remaining condition isIts left-hand side has a nonzero coefficient of positive degree, so subtracting the specified constant gives a nonzero polynomial of degree at most . By the root bound for a polynomial, there are at most possible field elements . Consequentlyand this is an -almost-strongly-universal family with , provided . The powers start at one deliberately: a message coefficient at power zero could give a known constant tag shift, allowing a deterministic substitution.
Alice sends the message and its tag over the public channel. Bob accepts only if his independently computed tag agrees. An attacker who has seen no tag guesses one with probability . After seeing a valid pair , an attacker substituting a different message and any chosen tag succeeds with conditional probability at most . This remains true when the choice of depends on the observed pair: the bound is uniform over all those choices. More explicitly, the observed tag leaves uniform because each possible has exactly one compatible secret mask .
For a desired forgery bound , choose . Since and , the substitution bound is at most . The secret requirement isFor a long message this is much shorter than its bits. This is Wegman–Carter authentication: a keyed hash plus a fresh secret one-time pad on the tag. It authenticates the message rather than concealing its contents. Use the key once for the guarantee just established; multiple authenticated messages require fresh masks and a reuse security analysis. Authenticate lengths and sequence identifiers too if variable lengths or replay protection are required.