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.
Past exam of the mathematics course of the University of Cambridge 2011 ii Paper 4 4G Solution Created 2026-09-24 Updated 2026-10-14
Use the BB84 protocol to establish a secret random key, then encrypt the actual message with a one-time pad. Alice chooses independent random bits and independently chooses between the computational orthonormal basis and the diagonal basis , where . She sends one photon or other qubit in each corresponding state. Bob independently chooses one of the two bases for each measurement.
Over an authenticated public classical channel, they announce their bases but not their bit values. They retain only positions where their bases match; absent disturbance these sifted bits agree. They disclose and discard a randomly selected test sample to estimate the error rate. If it is too large they abort. Otherwise they perform information reconciliation and privacy amplification to produce a shared key about which an eavesdropper has negligible information. Authentication is essential: without it, an active attacker can impersonate the two parties. It may use a previously shared short authentication key, subsequently replenished from the new secret key.
The no-cloning theorem prevents an attacker from copying an unknown nonorthogonal state perfectly: preservation of inner products would require , impossible when its modulus is strictly between zero and one. In a simple intercept-and-resend attack, Eve chooses the wrong basis with probability , and then introduces a wrong sifted bit with probability . Thus the test error rate is , and the probability that independent tested bits show no error is . More general attacks are handled by bounding Eve's information from the observed statistics and shortening the reconciled key through privacy amplification.
Finally Alice sends , using a uniform independent key of the message's length exactly once. The one-time pad makes the ciphertext independent of the message. The security claim is secrecy with arbitrarily small failure probability after testing and privacy amplification, not that a finite quantum transmission can never be disturbed or intercepted. The scheme assumes trusted devices and an authenticated classical channel; it does not rely on a computational hardness assumption.
Past exam of the mathematics course of the University of Cambridge 2020 ii Paper 4 3I a Solution Created 2026-09-24 Updated 2026-10-14
A cipher has perfect secrecy when the conditional probability of every plaintext given a ciphertext equals its prior probability: whenever . Equivalently, the plaintext and ciphertext are independent random variables.
Fix a ciphertext that can occur. Perfect secrecy requires every possible plaintext to remain possible after observing . For a deterministic decryption rule, two different plaintexts producing require two different keys, so the key space has cardinality at least that of the message space.
In a one-time pad, the message and key belong to the same finite additive group, the key is uniform and independent of the message, and encryption is . For every there is exactly one key , soindependent of . Bayes' theorem then gives , proving perfect secrecy.
Past exam of the mathematics course of the University of Cambridge 2021 ii Paper 2 15D a Solution Created 2026-09-24 Updated 2026-09-25
Alice and Bob need a uniformly random secret key known only to them. Alice publicly sends the one-time pad ciphertext , and Bob recovers . For every observed and possible message there is exactly one equally likely key , so is independent of and Eve learns nothing.
Past exam of the mathematics course of the University of Cambridge 2023 ii Paper 2 12I a Solution Created 2026-09-24 Updated 2026-10-03
A one-time pad over the finite additive group uses a key that is uniform on , independent of the plaintext , as long as the plaintext, and never reused. Encryption and decryption are
For independent random variables , conditioning reduces entropy and translation by a known element of the finite additive group preserves entropy, soInterchanging and gives , henceThis is the entropy of a sum of independent finite-group variables.
The result explains why adding independent pad symbols cannot reduce uncertainty. For a uniform pad, is itself uniform and is independent of , which is the perfect-secrecy property. Independence is necessary: if is nonconstant and , then is constant, so
Past exam of the quantum information course of the University of Cambridge 2015 Paper 1 2 f Solution 2026-10-20
This is an entanglement-based quantum key distribution scheme of the type proposed by Artur K. Ekert.[ref]
Quantum cryptography based on Bell's theorem by Artur K. Ekert. 1991 primary proposal: Bell correlations used to test a key-distribution channel
The measurements generate correlated random data; Alice does not choose a message by choosing their random outcomes.After the measurements, Alice and Bob announce their basis choices over an authenticated public channel. They retain the pairs with equal axes, here and , and Bob flips his outcome signs to match Alice's bits. They sacrifice a random subset for error estimation and use the appropriate other setting combinations to estimate . In the ideal source the same-axis bits match after the flip and ; the specified intercept-resend attack cannot reproduce that value.
A practical protocol includes information reconciliation, an accounting of information leaked publicly, and privacy amplification. It must abort when its statistical security conditions fail. Authentication is essential: a completely unauthenticated public channel permits a man-in-the-middle attack. A Bell-violation observation alone, without sampling, device and adversary assumptions and a finite-key analysis, is not a proof that Eve knows no key bits.
With a sufficiently uniform secret shared key of the required length, Alice can send publicly using a one-time pad; Bob recovers . The pad must be secret, as long as the protected message, and never reused. A complete security proof makes the probability or distinguishing advantage of failure small under stated assumptions. The ideal exam correlations diagnose the stated attack; they do not provide an unconditional guarantee against every attack or implementation fault.