Past exam of the mathematics course of the University of Cambridge 2010 ii Paper 4 4H Solution Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2019 ii Paper 4 3G a Solution Created 2026-09-24 Updated 2026-10-03
In Diffie-Hellman key exchange, Alice and Bob publicly agree on a cyclic group in which the discrete logarithm problem is believed hard. Alice chooses a secret and sends ; Bob chooses a secret and sends . They independently computeThusis their shared key. A passive eavesdropper sees but is believed unable to compute efficiently; this is the computational Diffie--Hellman assumption. The basic protocol does not authenticate the participants and is therefore vulnerable to a man-in-the-middle attack unless the exchanged values are authenticated.
Past exam of the mathematics course of the University of Cambridge 2022 ii Paper 2 12K b Solution Created 2026-09-24 Updated 2026-09-25
The discrete logarithm problem asks, given and , to recover modulo . In the Diffie-Hellman key exchange, Alice sends , Bob sends , and both compute . An enemy able to compute discrete logarithms recovers or from the public messages and hence obtains the key.
For three participants with private exponents , circulate three tokens around a directed ring. Start with ; whenever a participant receives a token, they raise it to their private exponent and pass it on. Arrange the three cyclic routes so that after two transmissions each participant receives one token to which all three exponents have been applied. Every participant then haswhile the public transcript contains only proper subproducts.
For participants, start token at participant and pass it successively through the other participants in cyclic order, each raising it to their exponent. Choose the cyclic starts so that one completed token ends at each participant. Every final token equalsThere are tokens and transmissions per token, for exactlycommunications. Security rests on the corresponding generalized Diffie--Hellman problem.