Chosen-ciphertext attack 2026-10-05
An attack in which an adversary obtains decryptions of selected ciphertexts, subject to the protocol’s restrictions. The multiplicative structure of textbook RSA cryptosystem permits blinding an intercepted ciphertext by a known invertible factor.
Homomorphism attack 2026-10-05
An attack exploiting preservation of an algebraic operation by encryption or signing. The textbook RSA cryptosystem has , so unprotected ciphertexts can be modified multiplicatively. Authentication must be verified before accepting a modified message.
Past exam of the mathematics course of the University of Cambridge 2006 ii Paper 3 12G Solution Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2017 ii Paper 4 3G Solution Created 2026-09-24 Updated 2026-10-05
In the RSA cryptosystem, choose distinct large prime numbers , set , and choose coprime to . Choose with . A plaintext residue class is encrypted as and decrypted as . Fermat's little theorem modulo and , followed by the Chinese remainder theorem, proves correctness even when is not coprime to .
Textbook RSA cryptosystem is multiplicative: . For a chosen-ciphertext attack, multiply an intercepted by for a known invertible . A decryption oracle returns , from which multiplication by recovers . Likewise, multiplying two textbook RSA signatures produces a signature of their product. These are homomorphism attacks, exploiting algebra rather than factoring .
For an ElGamal signature, choose a prime , a primitive root modulo , a private exponent , and public . To sign a message digest , choose a fresh secret coprime to and setVerification checks and , which follows because . Authenticating the ciphertext and its context with such a digital signature, before decryption, prevents the simple multiplicative modification from being accepted without a fresh valid signature. One needs an appropriate cryptographic hash function and fresh secret cryptographic nonces: this is not a claim that every algebraic attack is impossible. In particular, the unhashed historical ElGamal signature scheme admits existential forgeries of specially chosen message exponents; mere multiplication of encrypted messages is not an authentication mechanism.
Past exam of the mathematics course of the University of Cambridge 2018 ii Paper 2 12H Solution Created 2026-09-24 Updated 2026-10-03
In the RSA cryptosystem, choose distinct primes , set , and choose with . The public key is ; the private exponent satisfiesA message is encrypted and decrypted by
Suppose , where is odd. For a unit modulo , both and are powers of two dividing . If these orders differ, assume without loss of generality thatTaking givesand hencea nontrivial factor.
To count successful , write and with odd. Raising to the odd power , which is divisible by the odd parts, maps a uniformly chosen element of each cyclic multiplicative group uniformly onto its Sylow two-subgroup. In a cyclic group of order , the probability of order is and that of order is for . If , the probability that the two resulting orders agree isThus at least half of the units satisfy .
Knowing reveals the multiple of . Writing with odd and trying random units therefore yields a factor with probability at least one half per trial; nonunits already reveal a factor by taking their greatest common divisor with . Conversely, factoring gives and hence . This proves that recovering the private key is computationally equivalent, up to randomized polynomial-time work, to factoring the RSA modulus, as summarized by RSA private exponent reveals the factorization.
Finally, is odd because it is coprime to the even integer . If , thenThus fixed points occur in complementary pairs , which is the Complementary RSA fixed points property.
Past exam of the mathematics course of the University of Cambridge 2020 ia Paper 2 7D c Solution Created 2026-09-24 Updated 2026-09-29
In the RSA cryptosystem, choose distinct large primes , put , and choose coprime toThe decryption exponent is the modular multiplicative inverseThus . For a message with , the Fermat-Euler theorem givesFor , . The extended Euclidean algorithm givesso
Past exam of the mathematics course of the University of Cambridge 2021 ii Paper 4 3K Solution Created 2026-09-23 Updated 2026-09-25
For Rabin cryptosystem, choose primes , publish , and encrypt as . The factors let the receiver take square roots modulo and and combine them using the Chinese remainder theorem; redundancy identifies the intended one of four roots.
Past exam of the mathematics course of the University of Cambridge 2024 ii Paper 2 12K b i Solution Created 2026-09-24 Updated 2026-09-25
For the RSA cryptosystem, choose and a public exponent coprime to . The public key is , while the private exponent satisfiesEncryption sends to , and decryption computes .
Private key 2026-10-05
The secret member of a public-key cryptographic key pair, used for decryption or signing according to the scheme. In the RSA cryptosystem the private exponent is not interchangeable with a security proof for textbook signing.
RSA signature 2026-10-05
A signature based on private RSA cryptosystem exponentiation, with public exponentiation used for verification. Textbook is multiplicatively forgeable; a secure scheme requires an appropriate encoding and message digest rather than raw message exponentiation.