- Introduced by
- Neal Koblitz
- Year
- 1985
- Type
- asymmetric encryption and key agreement
- Family
- Public-key cryptography
What does it do?
Elliptic Curve Cryptography (ECC) is a public-key cryptosystem built on the group of points of an elliptic curve over a finite field.
Victor S. Miller and Neal Koblitz proposed the use of elliptic curves in cryptography in the mid-1980s; the cited papers are dated 1985 (Miller) and 1987 (Koblitz). ECC provides public-key encryption, key agreement and digital signatures, and it is commonly cited as reaching a security level comparable to RSA with much shorter keys, for example a 256-bit ECC key compared with a 2048-bit RSA key.
The intuition behind the method
ECC rests on the elliptic curve discrete logarithm problem (ECDLP). Adding points on a curve is efficient: starting from a known point G, the multiple k × G can be computed quickly by repeated doubling and addition. The reverse problem, recovering k from G and k × G, is believed to be computationally infeasible for well-chosen curves. This hardness comes from the group structure of the curve rather than from factoring large integers, which is the basis of RSA. The asymmetry lets a public point Q = d × G be shared openly while the scalar d stays secret.
History
Miller's 1985 paper at CRYPTO 1985 and Koblitz's 1987 paper in Mathematics of Computation are the two sources cited here for the proposal of elliptic curves in cryptography. Modern protocols such as TLS 1.3, Signal and blockchain systems now use curves such as Curve25519 and P-256, and these standardised curves are the practical choices for new systems.
When to use it
Choose ECC for new systems that need public-key encryption, key agreement or digital signatures, particularly where key size, bandwidth or computation are constrained, as in mobile, IoT and embedded devices. It is the basis of ECDHE in TLS 1.3, ECDSA in Bitcoin and Ethereum, and Curve25519 in Signal, so it is the practical choice when interoperating with these protocols. Prefer RSA, or keep it, when a legacy system, piece of hardware or standard accepts only RSA and replacing it is not feasible. ECC is not a long-term answer to quantum adversaries because Shor's algorithm breaks it; for data that must stay confidential over long periods, post-quantum schemes should also be considered. Use standard, well-reviewed curves and established libraries rather than custom parameters.
Limitations and considerations
- Harder to implement and analyse correctly than RSA: point arithmetic has special cases, such as doubling and the point at infinity, that implementations must handle exactly
- Security depends on the curve: parameters with structural weaknesses, such as a low embedding degree that can enable pairing-based attacks, must be avoided, and although standard curves are preferred, their selection has been publicly debated
- Vulnerable to a sufficiently large quantum computer: Shor's algorithm solves the elliptic curve discrete logarithm problem in polynomial time, so ECC offers no protection against that threat, as with RSA
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Shorter keys than RSA for comparable classical security, which reduces storage, bandwidth and certificate size, as the 256-bit versus 2048-bit comparison in the lead illustrates
- Key generation requires a single scalar multiplication of the base point, and encryption and decryption are also built from scalar multiplications, which suits constrained hardware; the speed relative to RSA depends on the operation and the implementation
- Well suited to resource-constrained devices such as smart cards, mobile phones and IoT devices, where small key sizes matter
- Standard named curves such as P-256 and Curve25519 are supported by current protocols and cryptographic libraries
Applications
- TLS/SSL encryption for HTTPS and modern web security using ECDHE key exchange
- Blockchain and cryptocurrency systems (Bitcoin uses ECDSA on secp256k1, and Ethereum also uses secp256k1)
- Messaging and secure communication (Signal Protocol uses Curve25519 and X25519)
- Authentication and digital signatures in smart cards, hardware security modules and government credentials
- IoT and embedded systems security where computational resources are limited
How it works
How it works
Choose a curve equation (typically y^2 = x^3 + ax + b over a finite field), a base point G on the curve, and the order n of the subgroup generated by G, which is the number of points in that subgroup and not necessarily the total number of points on the curve. The private key d is a random integer, and the public key Q = d × G is computed by point multiplication.
Points on the elliptic curve form a group under a geometric addition rule. To add two distinct points P and Q, draw the line through them; it meets the curve at a third point, and the sum P + Q is that point reflected across the x-axis. Doubling a point P uses the tangent line at P instead. Repeated doubling and addition make it possible to compute the scalar multiple k × G.
To encrypt a message for public key Q, the sender picks a random ephemeral integer k and computes the point k × G, which is sent with the ciphertext. The sender also computes the shared point k × Q. That point is not used directly as a key: it is passed through a key derivation function to produce symmetric encryption keys, and the message is encrypted with an authenticated cipher, so that any modification of the ciphertext is detected. This is the general structure of schemes such as ECIES.
The recipient multiplies the received point k × G by the private key d, obtaining d × (k × G) = k × (d × G) = k × Q. This is the same point the sender computed, so the recipient can derive the same symmetric keys, authenticate the ciphertext and recover the message.
Common pitfalls
- Point multiplication that is not constant-time can leak the private scalar through timing or power consumption, so implementations need side-channel resistant arithmetic
- Using non-standard or unvalidated curves whose parameters may have structural weaknesses can reduce security well below the nominal level
- Reusing the ephemeral nonce k in ECDSA signatures, or generating it with a predictable or biased generator, can allow the private key to be recovered from published signatures; the nonce must come from a cryptographically secure source
Frequently asked questions
Why is a 256-bit ECC key considered as secure as a 2048-bit RSA key?
The comparison is a commonly cited estimate of classical security levels rather than a proof. The discrete logarithm problem on elliptic curves is likely to be harder than the classical discrete logarithm problem (Koblitz, 1987). For well-chosen curves, the best known generic attacks on it are generally regarded as fully exponential in the key length, whereas the best known attacks on integer factorisation are subexponential, so much smaller keys reach a comparable work factor. This comparison does not hold against quantum computers, because Shor's algorithm solves both problems in polynomial time on a sufficiently large quantum computer.
What are the most commonly used elliptic curves?
NIST standardized curves P-256, P-384, and P-521. Bernstein's Curve25519 is widely used in modern systems, for example in the Signal Protocol. Bitcoin uses secp256k1, and Ethereum also uses secp256k1 for account and transaction signatures.
Is ECC vulnerable to quantum computers?
Yes, Shor's algorithm can solve the elliptic curve discrete logarithm problem on quantum computers, making both ECC and RSA vulnerable. Post-quantum cryptography research is developing lattice-based, code-based, and multivariate alternatives.
What is the difference between ECDH and ECDSA?
ECDH (Elliptic Curve Diffie-Hellman) is a key agreement protocol for establishing shared secrets over insecure channels. ECDSA (Elliptic Curve Digital Signature Algorithm) is used for creating and verifying digital signatures.
Can I use the same key for ECDH and ECDSA?
It is technically possible but not recommended. Using separate keys for encryption and signature operations follows the principle of key separation and reduces the risk of subtle vulnerabilities.
Related methods
Sources
Miller, V. S. (1985). Use of Elliptic Curves in Cryptography. In Proceedings of the Advances in Cryptology - CRYPTO 1985, LNCS 218, pp. 417-426.
Open DOI referenceKoblitz, N. (1987). Elliptic Curve Cryptosystems. Mathematics of Computation, 48(177), 203-209.
Open DOI reference