Cryptographic nonce 2026-10-05
A protocol value intended to be used only once under a specified key. In the ElGamal signature scheme the signing nonce must also be secret and invertible modulo the group order; mere distinctness does not imply unpredictability.
Past exam of the mathematics course of the University of Cambridge 2005 ii Paper 3 4J Solution Created 2026-09-24 Updated 2026-10-14
A digital signature lets a holder of a private key authenticate a message while anyone with the public key verifies it. Signing a message digest ties the signature to the message and detects alterations; it does not conceal the message. Authentication also requires a trustworthy association of the public key with its owner.
For the ElGamal signature scheme, choose a large prime and a generator of . The secret is , and the public key is with . To sign a message whose hash is represented by , choose a fresh secret nonce coprime to and setTransmit with the message. Verification checks the permitted ranges and . Correctness follows from . The secret exponent prevents an outsider from directly constructing this relation for an arbitrary hashed message; nonce reuse can expose the exponent through the repeated linear congruences. Hashing is part of the signature scheme, rather than signing arbitrary raw exponents with no message encoding.
Past exam of the mathematics course of the University of Cambridge 2007 ii Paper 2 4G Solution Created 2026-09-24 Updated 2026-10-14
A digital signature lets the holder of a private key authenticate a message so that anyone with the corresponding trusted public key can verify its origin and integrity. The signature does not conceal the message. Public-key certification, a suitable message hash and protection of the signing key are needed for that interpretation.
For the ElGamal signature scheme, choose a large prime and a primitive root modulo . The secret key is , and the public key is with . Represent the message by a hash modulo . Choose a fresh secret nonce coprime to and setThe signature is . After checking the prescribed ranges, the verifier accepts whenA genuine signature passes because . The security aim is that someone without cannot efficiently produce a valid signature on a new authenticated message. Nonce secrecy and freshness matter: reuse gives linear congruences relating two message hashes, the nonce and the secret key. Signing unhashed arbitrary messages also permits algebraic forgeries, so the hash is part of the practical scheme.
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.