liveBook · Manning

Elliptic-curve point

As explained in Hacking Cryptography

An elliptic-curve point is a coordinate pair satisfying the equation of an elliptic curve and participating in its group operation.

An elliptic-curve point is a coordinate pair (x, y) that satisfies the curve equation. In DUAL_EC_DRBG, scalar multiplication transforms such points and makes generator points central to the attack. section 3.2.4

The implementation treats a candidate point defensively:

  • Compute y from x using y² = x³ + ax + b. section 3.2.4
  • Reject x values without a modular square root. section 3.2.4
  • Verify y² matches the curve expression and confirm the point lies on P-256. section 3.2.4

Recovering a hidden point

An observed DUAL_EC_DRBG output contains a truncated x-coordinate. An attacker guesses the missing bytes, reconstructs possible y-coordinates, and tests each candidate through scalar multiplication until the next output matches. section 3.2.4

Equation 3.7
\[\begin{aligned} \begin{aligned} y^2 = x^3 + ax + b \\ y = \sqrt{x^3 + ax + b} \end{aligned} \label{equation:elliptic-curves-2} \end{aligned}\]

Use the curve equation to connect an x-coordinate with its possible y-coordinates. section 3.2.4

How Hacking Cryptography covers it

How deep it goes
Explains curve membership, modular square roots, coordinate validation, truncation recovery, and scalar multiplication, but not point-addition internals.
Examples
Uses P-256 validation, truncated output reconstruction, Go implementations, and a test that clones 100 subsequent outputs.
What it assumes
Assumes familiarity with coordinates and modular arithmetic while teaching curve-equation checks from the reconstruction procedure.
What you can do after
Diagnose/debug point reconstruction by validating coordinates and testing scalar-multiplication candidates against observed outputs.
How it connects
Connects elliptic curves with scalar multiplication, generator points, modular arithmetic, and cryptographic random number generators.

Also explained in

Compare how 2 books explain elliptic-curve point →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Hacking Cryptography. The section links point to the parts of the book it draws on.