Sid Makes Sense

Elliptic Curves Over Finite Fields

15 min read

Core idea: A finite-field curve is computed directly from its modular equation. It is not a cropped, rounded, or wrapped image of the real curve.

Construct the point group

For each xFpx\in\mathbb{F}_p:

  1. Compute r=x3+ax+b(modp)r=x^3+ax+b\pmod p.
  2. Find every yy with y2r(modp)y^2\equiv r\pmod p.
  3. Collect each matching (x,y)(x,y), then add the identity O\mathcal{O}.

A nonzero quadratic residue normally gives the inverse pair (x,y)(x,y) and (x,py)(x,p-y); zero gives (x,0)(x,0); a non-residue gives no point.

For

y2x3+x+1(mod11),y^2\equiv x^3+x+1\pmod{11},

there are 1313 affine points and O\mathcal{O}, so #E(F11)=14\#E(\mathbb{F}_{11})=14.

Add finite-field points

Use the same group law algebraically. For P=(x1,y1)P=(x_1,y_1) and Q=(x2,y2)Q=(x_2,y_2):

λ={(y2y1)(x2x1)1,PQ,(3x12+a)(2y1)1,P=Q,(modp)\lambda= \begin{cases} (y_2-y_1)(x_2-x_1)^{-1}, & P\ne Q,\\ (3x_1^2+a)(2y_1)^{-1}, & P=Q, \end{cases} \pmod p x3=λ2x1x2,y3=λ(x1x3)y1(modp).x_3=\lambda^2-x_1-x_2, \qquad y_3=\lambda(x_1-x_3)-y_1 \pmod p.

Division means multiplication by a modular inverse. Also, P+(P)=OP+(-P)=\mathcal{O} and 2(x,0)=O2(x,0)=\mathcal{O}.

Validity: Require 4a3+27b2≢0(modp)4a^3+27b^2\not\equiv0\pmod p. Production curves use the same construction and operation at an enormous scale.

Next: Measure scalar cycles and select a prime-order subgroup.