Skip to main content
  1. Index/

ECC (Elliptic Curve Cryptography)

Elliptic Curve Cryptography (ECC) is a family of public-key cryptographic algorithms built on the mathematics of elliptic curves over finite fields. Its security rests on the Elliptic Curve Discrete Logarithm Problem (ECDLP): given a public point Q = k × G on a curve (where G is a fixed base point and k is the private key scalar), recovering k from Q and G is computationally infeasible on classical computers. The practical advantage over RSA is dramatic key size efficiency: a 256-bit ECC key provides roughly the same classical security as a 3072-bit RSA key, because the best known classical algorithms for ECDLP (Pollard’s rho) are exponential whereas the best RSA algorithms (GNFS) are sub-exponential. This size difference has compounding benefits — smaller keys mean faster operations, smaller certificates, smaller TLS handshake messages, and lower power consumption on constrained devices. ECC is now the dominant choice for all new asymmetric cryptography deployments: TLS 1.3 mandates ECDHE for key exchange, and ECDSA or EdDSA for authentication; SSH defaults to Ed25519; code signing infrastructure increasingly uses ECDSA P-256 or Ed25519.

The specific security and behaviour of an ECC scheme depends entirely on the curve chosen. The most widely deployed curves are: P-256 (also called secp256r1 or prime256v1, an NIST/FIPS-standardised curve, the default in most TLS deployments and X.509 certificates), P-384 (NIST curve, required by NSA CNSA 1.0 for top-secret data, slower than P-256 with more conservative security margin), P-521 (NIST curve, highest classical security, rarely deployed), X25519 (Bernstein’s Curve25519 used for Diffie-Hellman key exchange, designed for safety and performance with a simple constant-time implementation, default in TLS 1.3 key exchange and WireGuard), and Ed25519 (Edwards-form Curve25519 used for EdDSA signatures, the default SSH host key and user key algorithm since OpenSSH 6.5, notably faster and simpler to implement safely than ECDSA). The NIST P-curves carry a lingering concern among cryptographers about the verifiability of their parameter generation (“nothing up my sleeve” questions about seed values), whereas Curve25519/Ed25519 have fully transparent, verifiable parameter generation — an important consideration for high-assurance deployments.

Like RSA, all ECC algorithms — ECDH, ECDSA, EdDSA — are broken by Shor’s algorithm on a CRQC. The ECDLP is no harder than integer factorisation against a quantum adversary; Shor’s algorithm solves both in polynomial time. NIST IR 8547 designates all ECC-based algorithms for deprecation in new systems after 2030 and disallowance after 2035. The HNDL threat is particularly relevant for ECDH key exchange in TLS sessions recorded today: although TLS 1.3 provides forward secrecy (ephemeral ECDHE), the session key is only as quantum-safe as the key exchange algorithm, and ECDHE is not. The migration path replaces X25519/ECDHE with ML-KEM for key encapsulation (currently deployed in hybrid X25519MLKEM768 form in TLS 1.3) and ECDSA/EdDSA with ML-DSA for signatures. The hybrid transition period, where both an ECC share and an ML-KEM share are combined in the key exchange so the session is secure against both classical and quantum attackers simultaneously, is the standard recommended by NIST and already deployed by default in Chrome 131+ and available in OpenSSL 3.4+.

Related

RSA (Rivest–Shamir–Adleman)

RSA (Rivest–Shamir–Adleman), published in 1977, was the first widely adopted public-key cryptosystem and for decades the most deployed asymmetric algorithm in existence. Its security rests on the integer factorisation problem: given a public modulus n = p × q (the product of two large primes), recovering p and q is computationally infeasible on classical computers for sufficiently large n. The public key is the pair (n, e) and the private key is (n, d), where e and d are related by the modular arithmetic of Euler’s totient function. RSA enables two operations: encryption (the sender uses the public key to encrypt a message that only the private key holder can decrypt) and signing (the private key holder produces a signature that anyone with the public key can verify). In practice, RSA encryption is used almost exclusively for key encapsulation — encrypting a randomly generated symmetric key — rather than encrypting arbitrary data directly, both because RSA is slow and because direct RSA encryption of large messages requires padding schemes that are historically error-prone.

ECDSA (Elliptic Curve Digital Signature Algorithm)

ECDSA (Elliptic Curve Digital Signature Algorithm) is the elliptic curve analogue of DSA, standardised in FIPS 186 and the IETF, that produces digital signatures using a private key and verifies them with the corresponding public key. It is the most widely deployed signature algorithm in X.509 certificates (P-256 with SHA-256 is the default for certificate authorities issuing TLS certificates), in code signing (Authenticode, macOS, Linux package signing), in TLS 1.3 certificate authentication, in SSH host keys and user keys (though Ed25519 is increasingly preferred), and in blockchain and cryptocurrency systems. An ECDSA signature over a message m with private key d on curve with base point G produces a pair (r, s), where r is the x-coordinate of an ephemeral public key k × G and s encodes the relationship between the message hash, r, the private key d, and the nonce k. Verification requires only the public key Q = d × G and is fast; signing requires the private key and a nonce.

ML-DSA (Module-Lattice-Based Digital Signature Algorithm)

ML-DSA (Module-Lattice-Based Digital Signature Algorithm), standardised as NIST FIPS 204 in August 2024, is the primary post-quantum replacement for digital signatures. It replaces ECDSA, EdDSA, and RSA PSS/PKCS#1 signatures in X.509 certificates, code signing, TLS client and server authentication, SSH, JWT signing, and any other context where a party proves possession of a private key by producing a signature that others verify with the public key. ML-DSA is derived from CRYSTALS-Dilithium, the submission that won NIST’s lattice-based signature selection, and its security rests on the Module Learning With Errors (MLWE) and Module Short Integer Solution (MSIS) problems — the same mathematical family as ML-KEM, which is significant because both algorithms can share implementation code and hardware acceleration for the underlying polynomial arithmetic (NTT, number-theoretic transform).