Multilateral Diffie-Hellman key exchange Created 2026-10-14 Updated 2026-11-05
In a cyclic group with generator , participants with secret exponents can exchange tokens around a ring. Token starts at and is successively exponentiated by its next recipients before being sent to the final recipient, whose exponent is the only one missing. That recipient completes the exponentiation locally. Each token makes transmissions, and everyone obtains . Thus transmitted group elements suffice. As with two-party Diffie-Hellman key exchange, authentication is needed.
Past exam of the mathematics course of the University of Cambridge 2010 ii Paper 4 4H Solution Created 2026-09-24 Updated 2026-10-14
In a specified finite cyclic group , the discrete logarithm problem is to recover modulo from and . A common choice is a large prime-order subgroup of a multiplicative group of a finite field.
For Diffie-Hellman key exchange, Alice and Bob independently choose private exponents , transmit , and compute respectively and . Both obtainSolving a discrete logarithm problem reveals a private exponent and breaks this exchange. The converse implication is not known in general: recovering from is the computational Diffie–Hellman problem, rather than literally the same task as computing a logarithm.
The advantage is that parties without an already shared secret can establish a fresh session key, which can then be used with efficient symmetric encryption. A classical secret-key system requires an earlier secure key distribution; ordinary public-key encryption can instead transmit a chosen key, but ephemeral Diffie-Hellman key exchange also permits forward secrecy when private session exponents are erased and the exchange is authenticated. Authentication is essential: an unauthenticated exchange is vulnerable to a man-in-the-middle attack.
For multilateral Diffie-Hellman key exchange with participants with private exponents , send tokens clockwise around a ring. Participant starts the token and sends it to participant . On each subsequent receipt, the receiver raises the token to their own private exponent and sends it onwards, until that token has made transmissions and reaches participant . Its exponent then contains every exponent except . The receiver raises it to locally, obtainingEvery participant receives one such final token. There are tokens with exactly transmitted group elements per token, giving transmissions. No private exponent is transmitted.
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.
Past exam of the quantum information course of the University of Cambridge 2014 Paper 1 2 Solution 2026-10-20
The input size of an integer factorization problem is its number of bits . Trial division up to is exponential in ; advanced classical algorithms do substantially better, but no general polynomial-time classical factoring algorithm is known. The heuristic general-purpose general number field sieve has subexponential rather than polynomial scaling, roughly . This describes known algorithmic performance, not a proof that efficient classical factoring is impossible or that every large integer is difficult.
Choose with . A nontrivial greatest common divisor already supplies a factor; otherwise find the multiplicative order of modulo . If is even and , thenMinimality of the order also excludes , so factor extraction from an even modular order gives nontrivial factors through . Unhelpful choices of or odd orders require another trial. For , has successive residues and order four, givingComputing the powers is easy by repeated squaring; discovering a large order is the step accelerated by Shor's algorithm.[ref]
Polynomial-Time Algorithms for Prime Factorization and Discrete Logarithms on a Quantum Computer by Peter W. Shor. Quantum reduction to order finding and classical factor extraction
Put and suppose . For each residue class , letThese are normalized uniform superpositions of the arguments with the same modular-exponentiation value. Their amplitudes repeat at separation within the finite register window. Exact cyclic periodicity requires . The correctly normalized entangled register state isThe equal prefactor in the displayed algorithm is exact when , for then every . It is not generally exact for an arbitrary unknown order. A physical implementation uses quantum modular exponentiation as a reversible map; its specified action on second-register input zero is extended to a unitary operator on the whole register space.
For the illustrative , and , the four first-register states areApplying the positive-sign quantum Fourier transform to the general state givesThe bracket is a finite geometric Fourier amplitude. If , it vanishes unless for , when it equals . HenceThe second-register states are orthogonal, so their different phases do not change the marginal first-register probabilities. Measurement givesIn the example the possible outcomes are . A nonzero observed ratio estimates , not a prime factor directly. Reducing it gives denominator ; repeating avoids uninformative outcomes or recovers missing order factors. For example, or gives denominator four, whereas alone gives only two.
When , the Fourier probabilities have narrow peaks near instead of support only on an exact reciprocal grid. The general marginal distribution isChoosing supplies the usual precision for continued-fraction recovery in quantum order finding: a nearest grid sample differs from the target rational by at most . Candidate denominators and extracted divisors are checked classically, and repetitions provide useful samples. The small example works exactly because its order divides the register size; it is not a general precision guarantee for factoring every four-bit integer.
Exact reciprocal-period sampling for order four and broadened peaks when the order does not divide the register
. Details. A sufficiently large reliable quantum computer would undermine RSA by efficient factorization. The related discrete-logarithm algorithm also threatens Diffie-Hellman key exchange and elliptic-curve public-key schemes. This does not imply that every communication scheme or symmetric cipher is broken by the same algorithm; post-quantum cryptography studies alternatives based on other problems. The mathematical speedup assumes a scalable quantum computation with enough precision and error control, not merely a small demonstration of factoring fifteen.
