跳到正文
The Lumenary
本科低年级Applied Mathematics课程已上线

Cryptography

The mathematics of modern cryptography: symmetric and public-key systems, RSA, Diffie–Hellman key exchange, discrete logarithms, digital signatures, and the unproved hardness assumptions on which security rests.

math.applied.cryptography

前置知识

20 项必需的前置知识(一直追溯到底)

你将学会

  • Implement RSA key generation, encryption and decryption, and prove correctness using Euler's theorem and the Chinese remainder theorem.
  • Carry out Diffie–Hellman key exchange and explain its reliance on the hardness of discrete logarithms.
  • Explain why fast modular exponentiation makes these systems practical, and why their security claims are conditional.

定义

  • In RSA, n = pq for large primes p and q, and exponents e and d satisfy ed ≡ 1 (mod φ(n)); a message m is encrypted as mᵉ mod n.
  • The discrete logarithm problem asks, given g and h = gˣ in a group, to find x.
  • A one-way function is easy to compute but believed to be hard to invert.

定理

  • RSA decryption works: (mᵉ)ᵈ ≡ m (mod n) for every integer m, by Euler's theorem and the Chinese remainder theorem.
  • Modular exponentiation by repeated squaring uses O(log e) multiplications.
  • Shor's algorithm would factor integers and compute discrete logarithms in polynomial time on a sufficiently large quantum computer.

常见误解

  • Thinking RSA's security has been proved; it rests on unproved assumptions about factoring.
  • Believing encryption alone guarantees authenticity; that needs signatures or message authentication codes.
  • Using 'textbook' RSA without padding in practice.

可选发现

延伸阅读

  • Jeffrey Hoffstein, Jill Pipher and Joseph H. Silverman, An Introduction to Mathematical Cryptography (2008)
  • Jonathan Katz and Yehuda Lindell, Introduction to Modern Cryptography (2007)