Conic-Non-Elliptic Curve DLP Reduction (Fake ECC)
- •
What it is
- •
Elliptic-curve cryptography's security relies on a specific hard structure — the point group of a genuine elliptic curve (a smooth cubic) has no known efficient discrete-log algorithm in general. A conic — a degree-2 curve like — can also be equipped with a group law that superficially looks like "elliptic curve" code, but conics are not elliptic curves, and their groups are secretly isomorphic to something much simpler: the substitution transforms the conic's equation into — literally the multiplicative group of the field (when exists there, i.e. is a quadratic residue) — collapsing the "discrete log problem" on the conic into an ordinary discrete log in , easy whenever is smooth (typical for a randomly chosen toy prime), via Pohlig-Hellman.
- •
- •
When to apply
- •
A challenge presents a hand-rolled "elliptic curve" whose point-addition formula doesn't look like the real Weierstrass group law (no cubic term, no slope/tangent-line computation) — especially a simple bilinear formula in the coordinates. Check what implicit curve equation the code's assertions define; if it's degree 2 (a conic), not degree 3, this reduction almost certainly applies.
- •
- •
Math
- •
Given the conic with a QR mod (write ), the map is a group isomorphism onto . For base point and public point : , so — an ordinary multiplicative discrete log.
- •
- •
Worked example
- •
Toy 20-bit prime with a QR (via a known small square root ), a random base point satisfying , and a random private scalar: computing , and brute-force searching for with recovered the exact private scalar used to generate via the real
scalar_multiplication, confirming the isomorphism holds and the discrete log transfers correctly.
- •
- •
Python
- •
# after finding integer square root s of D mod p (only possible if D is a QR mod p): def phi(P, s, p): return (P.x - s * P.y) % p g, h = phi(G, s, p), phi(A, s, p) # now solve g^na == h (mod p) -- an ordinary multiplicative-group DLP
- •
- •
- •
Cards
- •
What's the giveaway that a "custom elliptic curve" is actually a conic in disguise?
- •
The point-addition formula is a simple bilinear expression with no cubic/Weierstrass structure, and the implicit curve equation is degree 2, not degree 3.
- •
- •
What group is a conic x²-Dy²=1 secretly isomorphic to, and via what map?
- •
The multiplicative group of the field (F_p*, when D is a quadratic residue mod p), via u = x - √D·y.
- •
- •