liveBook · Manning

Extended Euclidean algorithm

The extended Euclidean algorithm computes the greatest common divisor of elements and coefficients expressing it as their linear combination.

How 2 Manning books explain it

Hacking Cryptography

The extended Euclidean algorithm computes greatest common divisors and coefficients expressing them as linear combinations of integers.

How it is used
Computes RSA’s private exponent as the modular inverse of a coprime public exponent.
How deep it goes
Defines the EEA’s GCD role and demonstrates its RSA result, but does not detail the algorithm’s iterative steps.
Examples
Uses p = 193, q = 727, e = 17653, φ(n) = 139392, and d = 77533.
What you can do after
Evaluate RSA key generation by computing and verifying a modular inverse with the EEA.

Read how Hacking Cryptography explains extended Euclidean algorithm →

Elliptic Curve Cryptography for Developers

The extended Euclidean algorithm computes a greatest common divisor together with coefficients expressing it as a linear combination of the input elements.

How it is used
Applies polynomial inversion and division to extension-field elliptic-curve arithmetic and pairing algorithms.
How deep it goes
Derives initialization, quotient-remainder updates, normalization, termination, and the maintained invariant, but omits a full concrete computation.
Examples
Uses a simple polynomial inversion computation and the reduction of division to inversion followed by multiplication.
What you can do after
Apply polynomial inversion modulo an irreducible polynomial and implement division as inversion followed by multiplication.

Read how Elliptic Curve Cryptography for Developers explains extended Euclidean algorithm →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.