Skip to main content
Presentation 11 of 16

Elliptic-Curve Cryptography: Basics, ECDH and ECDSA

A key 12 times shorter for the same security. The price is a new kind of arithmetic: adding points on a curve instead of multiplying numbers.

Slides: 26 PDF · 1.1 MB
Loading slides…

Keyboard: Left arrow Right arrow Slides; F — fullscreen

Summary

The lecture builds elliptic-curve cryptography from the ground up: why a 256-bit ECC key matches 3072-bit RSA, the equation y² = x³ + ax + b and the discriminant condition, the geometric and algebraic rules for adding points, the abelian group, arithmetic over the finite field F_p, scalar multiplication (double-and-add) and the hardness of ECDLP. It then covers standard curves (secp256k1, P-256, Curve25519), ECDH key exchange, ECDSA signing and verification, and how a repeated nonce leaks the private key (PlayStation 3, Android wallets, RFC 6979, Ed25519); all calculations are worked by hand over F₉₇ and F₁₇ and in Python code.

Key terms

y² = x³ + ax + b nuqta qo'shish F_p kP double-and-add ECDLP secp256k1 P-256 Curve25519 ECDH ECDSA nonce

Lecture outline

  1. Why ECC — the key-length question
  2. The curve equation and the discriminant condition
  3. The geometric rule for adding points
  4. Doubling, the neutral element and the group
  5. Algebraic formulas
  6. A curve over the finite field F_p
  7. Scalar multiplication, double-and-add, ECDLP
  8. Standard curves and ECDH
  9. ECDSA, the nonce disaster and Python
Related lesson Asymmetric Cryptography: RSA, Diffie-Hellman & ECC