Use this when using elliptic-curve cryptography.
ECC
ECC (elliptic-curve cryptography) gives the same security as RSA with much shorter keys — a 256-bit curve roughly matches 3072-bit RSA — so it is faster and used in TLS, SSH and modern certificates.
1. ECC gives equal security with smaller keys (P-256 ≈ RSA 3072).
2. Curves: P-256/384, Curve25519/Ed25519.
3. Faster.
4. Validate points (libraries do).
5. Not quantum-safe.
curve + private scalar → public point
Context & applicabilityCommon mistakes · platform/version boundaries
- ECDSA with a weak or reused nonce, which reveals the private key (PlayStation 3 signing key, 2010).
- Using curves with doubtful parameters or non-standard curves.
- Mixing up Ed25519 (signatures) and X25519 (key exchange).
- Libraries without constant-time implementations.
Operational reference
Fast context before you go deeper.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- 256-bit ECC ≈ 3072-bit RSA.
- Common curves: P-256, P-384, Curve25519.
- Faster and smaller than RSA.
openssl ecparam -list_curves | head— curvesopenssl genpkey -algorithm EC -pkeyopt ec_paramgen_curve:P-256 -out ec.pem— generateopenssl pkey -in ec.pem -noout -text— inspect
ReferenceWhy it matters1 section · depth on demand
Curves and key sizes
| Curve | Security | Use |
|---|---|---|
| P-256 (secp256r1) | ~128-bit | TLS, certificates, FIPS |
| P-384 | ~192-bit | CNSA, government |
| Curve25519 / X25519 | ~128-bit | Key exchange (TLS 1.3, SSH, WireGuard) |
| Ed25519 | ~128-bit | Signatures (SSH, modern apps) |
openssl ecparam -name prime256v1 -genkey -noout -out ec.key or ssh-keygen -t ed25519. ECC, like RSA, is broken by large quantum computers.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
Elliptic Curve Cryptography (ECC) provides public-key cryptography based on the algebra of elliptic curves. It achieves the same security as RSA with much smaller keys, making it faster and more efficient — important for TLS, mobile devices and IoT.
| Security level | RSA key | ECC key |
|---|---|---|
| 128-bit | 3072 bits | 256 bits (P-256, Curve25519) |
| 192-bit | 7680 bits | 384 bits (P-384) |
Common uses: ECDHE key exchange in TLS, ECDSA and EdDSA (Ed25519) signatures for certificates and SSH keys. Like RSA, ECC is vulnerable to large future quantum computers; post-quantum algorithms (ML-KEM, ML-DSA) are being deployed in hybrid modes.
ReferenceConfiguration & state1 section · depth on demand
Commands
openssl genpkey -algorithm EC -pkeyopt ec_paramgen_curve:P-256 -out ec.key
openssl genpkey -algorithm ed25519 -out ed.key
ssh-keygen -t ed25519 -C "patrick@laptop"
Documented example, not captured output. A 256-bit ECC key gives about the same security as RSA-3072.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Asymmetric Cryptography → ECC. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://csrc.nist.gov/pubs/fips/186-5/final · confidence 94%