Alfred J. Menezes 2026-11-05
Alfred J. Menezes coauthored the Handbook of Applied Cryptography by Alfred J. Menezes, Paul C. van Oorschot and Scott A. Vanstone. Its number-theoretic algorithms include computing modular square roots and implementing public-key cryptography. The presentation distinguishes computational problems, algorithmic procedures and correctness conditions, which is essential when a plausible-looking arithmetic operation is not by itself a secure cryptographic construction. [ref]
Paul C. van Oorschot 2026-11-05
Paul C. van Oorschot coauthored the Handbook of Applied Cryptography by Alfred J. Menezes, Paul C. van Oorschot and Scott A. Vanstone. Its treatment connects cryptographic constructions with explicit mathematical algorithms and stated assumptions, rather than describing encryption only as a black box. The number-theoretic chapter includes algorithms for modular square roots, while the public-key chapter gives RSA cryptosystem and Rabin cryptosystem constructions.[ref]
For a concrete special case, if is prime and is a nonzero square modulo , a square root is . This illustrates how assumptions on an integer modulus determine which algorithm and correctness argument apply.
Rabin cryptosystem Created 2026-09-24 Updated 2026-11-05
The Rabin cryptosystem uses modular squaring with public modulus , where and are distinct odd prime numbers kept secret. The raw encryption map sends a message representative to
Knowing the prime factorization lets the receiver compute modular square roots modulo each prime and combine them by the Chinese remainder theorem. For a message coprime to , its ciphertext has exactly four roots modulo , corresponding to the two sign choices modulo each prime. A full encryption scheme therefore needs a specified message encoding or other rule to select the intended root; raw modular squaring by itself is four-to-one on the units.[ref]
For example, and give . Its four roots are modulo . The relation to integer factorization is especially direct: two roots that differ by more than an overall sign reveal a nontrivial factor through a greatest common divisor. The Rabin-Williams scheme is a more specific variant, rather than another name for every Rabin cryptosystem.
Rabin-Williams scheme 2026-11-05
The Rabin-Williams scheme is a family of modified Rabin cryptosystem constructions using a modulus with distinct prime numbers and . These congruences make sign and doubling adjustments useful for producing quadratic residues before taking modular square roots. In signature variants, the private integer factorization permits root extraction while the public verification uses squaring.
The arithmetic mechanism can be seen without fixing a full message encoding. For a unit modulo , exactly one of is a quadratic residue modulo both primes: the two signs change both Legendre symbols, while multiplication by changes only one of them. For the toy modulus and , the adjustment has square root , since .
A complete digital signature scheme must additionally specify message hashing or redundancy, the selected root, and how the adjustment is encoded and verified. The congruence calculation alone is not such a scheme. A specific modified-Rabin message-recovery construction is given in the primary handbook, rather than being identical to raw four-root Rabin encryption.[ref]
RSA cryptosystem Created 2026-09-24 Updated 2026-11-05
In the two-prime RSA cryptosystem, choose distinct odd prime numbers , set , and choose an integer coprime to . A private exponent satisfies . The public key is ; the private key permits the inverse modular exponentiation. For a message representative ,
Correctness holds even when is not coprime to : modulo each prime the zero case is immediate, while the nonzero case follows from Fermat's little theorem; the Chinese remainder theorem recombines the two congruences.
For example, , , and give ; encrypts to and decrypts back to . These tiny parameters only illustrate the arithmetic. The raw deterministic exponentiation is textbook RSA; practical encryption uses an encoding scheme rather than encrypting an unencoded message directly.[ref]
Scott A. Vanstone 2026-11-05
Scott A. Vanstone coauthored the Handbook of Applied Cryptography by Alfred J. Menezes, Paul C. van Oorschot and Scott A. Vanstone. The book develops the mathematics and algorithms underlying cryptography, including modular square roots and number-theoretic computational problems. It makes explicit the distinction between an algorithm's mathematical correctness and the hardness assumptions used by a cryptographic system. [ref]
Symmetric-key cryptography uses shared secret key material for cryptographic operations, including encryption and authentication. In a symmetric encryption scheme, a recipient holding the secret key can recover the plaintext from a ciphertext. Keeping the algorithm public does not prevent security: the secret is the key, not the procedure.
For example, a one-time pad encrypts a bit string as and decrypts with . Perfect secrecy requires an independently uniform secret key as long as the message and never reused. Reusing it gives , exposing a relation between messages. Ordinary efficient symmetric ciphers instead offer computational guarantees under stated assumptions. Confidentiality alone does not ensure message integrity; authenticated encryption addresses both.[ref]
Tonelli-Shanks algorithm Created 2026-10-20 Updated 2026-11-05
The Tonelli-Shanks algorithm finds a square root of a quadratic residue modulo an odd prime number . Handle separately and use the Legendre symbol to reject a quadratic nonresidue. Write with odd, choose a quadratic nonresidue , and initialize
modulo . Maintain , with of multiplicative order and of multiplicative order dividing .
If , find the least with . Set and update
The multiplicative order of decreases because its last nontrivial power and that of are both minus one. Thus strictly decreases. At , the invariant gives .
For , initialization gives . One update gives , so the roots are and modulo thirteen.[ref]