
Introduction: geometry as global infrastructure
A curve drawn on a plane seems far removed from a private key.
Yet elliptic curves support many modern systems for:
- key agreement;
- digital signatures;
- server authentication;
- secure messaging;
- software signing;
- distributed ledgers.
Their power comes from an asymmetry.
Given a public point G and a secret integer k, computing:
is efficient.
Recovering k from G and Q is believed to be hard for carefully selected curves and groups.
The direct operation is fast.
The inverse problem resists the best known large-scale classical attacks.
The misleading name
Elliptic curves are generally not ellipses.
The name comes from elliptic integrals.
A short Weierstrass equation is:
with non-singularity condition:
4a³ + 27b² ≠ 0
The real curve provides geometric intuition.
Cryptographic arithmetic usually occurs over finite fields.
Non-singularity
The discriminant is:
A zero discriminant produces a singular curve.
At a singular point, tangent behavior breaks and the desired elliptic group structure is lost.
An interactive slider should show how the curve changes as the discriminant approaches zero.
The group law over the reals
For points P and Q:
- draw the line through them;
- find the third intersection R;
- reflect R across the x-axis;
- obtain P + Q.
For P = Q, use the tangent.
The point at infinity O acts as the identity.
The inverse of (x,y) is (x,-y).
Affine formulas
For distinct P and Q:
For doubling:
Special cases must handle vertical lines and zero denominators.
Finite fields
Choose a prime p.
Coordinates belong to:
The equation becomes:
≡ +ax+b mod p
The continuous curve becomes a finite set of points.
Division means multiplication by a modular inverse.
Group order and Hasse’s theorem
The number of points satisfies:
Cryptographic parameters select a point G of large prime order n.
The complete group order is often:
where h is the cofactor.
The distinction between field size, group order and subgroup order is essential.
Scalar multiplication
A public key has the form:
where d is private.
Double-and-add computes dG in logarithmic time using the bits of d.
Practical methods include:
- windowing;
- wNAF;
- comb methods;
- fixed-base tables;
- Montgomery ladders.
Performance techniques must also be evaluated for side-channel behavior.
Projective coordinates
Affine addition requires modular inversion.
Projective or Jacobian coordinates replace most inversions with multiplications and squarings.
They improve performance but do not automatically guarantee constant-time execution.
The elliptic curve discrete logarithm problem
Given G and , recover k.
Generic attacks such as Pollard rho require about:
group operations.
For a roughly 256-bit prime-order subgroup, this motivates an estimated 128-bit classical security level.
This is a security assumption, not a proof that inversion is impossible.
ECDH
Alice publishes:
Bob publishes:
Both compute:
abG
ECDH establishes shared material.
It does not by itself authenticate the peer or directly produce encryption keys.
A KDF must bind the shared point to protocol context, identities and transcript.
ECDSA
To sign a message hash e:
- choose a secret nonce k;
- compute R = kG;
- set r to the x-coordinate modulo n;
- compute:
The signature is (r,s).
ECDSA signs.
It does not encrypt.
Nonce reuse disaster
Reusing k for two messages reveals k and then the private key. [1] [2]
The article should demonstrate this only with a tiny deterministic toy group.
Never accept real keys or arbitrary production signatures.
RFC 6979 specifies deterministic nonce generation for DSA and ECDSA.
FIPS 186-5 approves deterministic ECDSA.
EdDSA
EdDSA uses Edwards curves, deterministic nonce derivation and standardized encodings. [3]
Ed25519 and Ed448 are defined by RFC 8032.
They offer strong performance and implementation advantages in many systems.
They do not eliminate the need for safe libraries, side-channel resistance and correct domain separation.
X25519
X25519 is a scalar multiplication function used for key agreement. [4]
It operates with a Montgomery form related to Curve25519 and uses a ladder on the u-coordinate.
X25519 is not Ed25519.
The former is key agreement.
The latter is a signature system.
Curve models
Short Weierstrass
Used by P-256, P-384 and secp256k1.
Montgomery
Efficient x-coordinate or u-coordinate ladders.
Used by X25519 and X448.
Edwards
Uniform and efficient addition formulas.
Used by Ed25519 and Ed448.
Birational equivalence may connect models, but protocol encodings are not interchangeable.
Point encoding
A Weierstrass point may be encoded by x plus one bit selecting y.
SEC 1 compressed encodings use a prefix and the x-coordinate.
Decoding must validate:
- canonical form;
- field range;
- curve equation;
- sign branch;
- subgroup requirements.
Public-key validation
Depending on the protocol, implementations must check:
- valid encoding;
- point on curve;
- point not infinity;
- subgroup membership;
- correct order;
- cofactor handling.
Failure may enable invalid-curve or small-subgroup attacks.
Ristretto and Decaf
Ristretto255 and decaf448 expose prime-order groups over cofactored elliptic-curve constructions. [5]
They provide canonical encodings and remove several protocol hazards.
RFC 9496 standardizes these abstractions.
Hashing to curves
Some protocols need a deterministic map from bytes to a curve point. [6]
RFC 9380 standardizes complete suites that include:
- hash_to_field;
- map_to_curve;
- cofactor clearing;
- domain separation;
- named ciphersuites.
Ad hoc try-and-increment methods can introduce bias or timing problems.
secp256k1 and Bitcoin
Bitcoin historically uses ECDSA over secp256k1.
Taproot introduces Schnorr signatures specified by BIP 340.
ECC authorizes spending through signatures.
Bitcoin transactions are not generally encrypted by elliptic curves.
P-256 and TLS
ECC in TLS may support:
- ephemeral ECDH key agreement;
- ECDSA certificate signatures;
- X25519 groups.
TLS 1.3 combines key agreement with HKDF, transcript binding and authentication.
A curve is only one component of the security proof.
Ed25519 and SSH
RFC 8709 specifies Ed25519 and Ed448 public-key algorithms for SSH. [7]
Operational security still requires protected private keys, revocation and lifecycle management.
Secure messaging
Signal’s X3DH uses elliptic-curve Diffie-Hellman operations to establish asynchronous shared secrets.
The Double Ratchet then evolves keys.
The protocol combines ECC with signatures, hashes, KDFs and ratchets.
Pairing-friendly curves
Bilinear pairings satisfy:
They enable:
- BLS signatures;
- signature aggregation;
- identity-based systems;
- zero-knowledge systems.
Pairing-friendly curves use specialized parameters.
Ordinary ECDH curves are not automatically suitable.
Side channels
A mathematically correct scalar multiplication can leak through:
- timing;
- cache;
- power;
- electromagnetic radiation;
- branches;
- memory access;
- faults.
Countermeasures include:
- constant-time execution;
- regular ladders;
- secret-independent memory access;
- blinding;
- audited libraries.
Fault and invalid-curve attacks
Faults can corrupt intermediate points or nonces.
Invalid-curve attacks exploit insufficient point validation.
The implementation must enforce the assumptions made by the protocol and group model.
ECC versus RSA
At comparable classical security levels, ECC generally uses smaller keys and signatures.
A common approximate comparison is:
- 256-bit elliptic-curve subgroup;
- 3072-bit RSA modulus;
both targeting roughly 128-bit classical security.
Performance still depends on the operation, platform and library.
Both are vulnerable to Shor’s algorithm on a sufficiently powerful fault-tolerant quantum computer.
The quantum threat
Shor’s algorithm solves elliptic-curve discrete logarithms in polynomial time on a cryptographically relevant quantum computer.
Current public quantum machines do not break deployed ECC at scale.
Long-term systems must nevertheless plan migration and protect against harvest-now-decrypt-later strategies.
Post-quantum standards
NIST finalized in 2024: [8]
- FIPS 203, ML-KEM;
- FIPS 204, ML-DSA;
- FIPS 205, SLH-DSA.
These are designed for resistance against known quantum attacks.
They are not ordinary elliptic-curve systems.
Hybrid transition
A hybrid key establishment may combine X25519 and ML-KEM, then derive keys from both shared secrets.
Correct composition must address:
- downgrade resistance;
- transcript binding;
- algorithm negotiation;
- message size;
- inventories;
- certificate and device lifetimes.
Cryptographic migration is an architecture program.
Interactive laboratory
The page should include at least:
- real curve and discriminant;
- chord-and-tangent addition;
- finite-field point explorer;
- scalar multiplication visualizer;
- toy ECDH;
- toy ECDSA and nonce-reuse warning;
- curve-model comparison;
- post-quantum migration timeline.
Where is the spiral?
An elliptic curve is not a spiral.
The sequence G, 2G, 3G, ... is a discrete orbit in a finite group.
A chosen visualization may look rotational, but that appearance is not intrinsic.
The genuine convergence is between fields:
geometry, number theory, algorithms, protocols and systems engineering.
Conclusion
Elliptic curves turn an equation into a group, a group into efficient arithmetic and arithmetic into public-key security.
Real protection requires more than the curve:
- correct parameters;
- subgroup handling;
- canonical encoding;
- point validation;
- nonce discipline;
- constant-time code;
- KDFs;
- authenticated protocols;
- post-quantum migration planning.
ECC is one of the clearest examples of abstract mathematics becoming global infrastructure.
References
- [1]Pornin, Thomas. (2013). Deterministic Usage of the Digital Signature Algorithm (DSA) and Elliptic Curve Digital Signature Algorithm (ECDSA). RFC 6979. DOI: 10.17487/RFC6979. https://www.rfc-editor.org/info/rfc6979/
- [2]National Institute of Standards and Technology. (2023). Digital Signature Standard (DSS). FIPS 186-5. DOI: 10.6028/NIST.FIPS.186-5. https://csrc.nist.gov/pubs/fips/186-5/final
- [3]Josefsson, Simon; Liusvaara, Ilari. (2017). Edwards-Curve Digital Signature Algorithm (EdDSA). RFC 8032. DOI: 10.17487/RFC8032. https://www.rfc-editor.org/info/rfc8032/
- [4]Langley, Adam; Hamburg, Mike; Turner, Sean. (2016). Elliptic Curves for Security. RFC 7748. DOI: 10.17487/RFC7748. https://www.rfc-editor.org/info/rfc7748/
- [5]de Valence, Henry; Grigg, Jack; Hamburg, Mike; Lovecruft, Isis; Tankersley, George; Valsorda, Filippo. (2023). The ristretto255 and decaf448 Groups. RFC 9496. DOI: 10.17487/RFC9496. https://www.rfc-editor.org/info/rfc9496/
- [6]Faz-Hernandez, Armando; Scott, Sam; Sullivan, Nick; Wahby, Riad S.; Wood, Christopher A.. (2023). Hashing to Elliptic Curves. RFC 9380. DOI: 10.17487/RFC9380. https://www.rfc-editor.org/info/rfc9380/
- [7]Harris, Ben; Velvindron, Loganaden. (2020). Ed25519 and Ed448 Public Key Algorithms for the Secure Shell (SSH) Protocol. RFC 8709. DOI: 10.17487/RFC8709. https://www.rfc-editor.org/info/rfc8709/
- [8]National Institute of Standards and Technology. (2024). Module-Lattice-Based Key-Encapsulation Mechanism Standard. FIPS 203. DOI: 10.6028/NIST.FIPS.203. https://csrc.nist.gov/pubs/fips/203/final