13.6 RANDOM FACTORIZATION

We assume that N is both composite and odd. Several factorization methods are based on a simple idea attributed to Dixon [1981]; if integers x and y can be found so that x2 = y2 (modulo N), then (xy)(x + y) = 0 (modulo N). If x ≠ ±y (modulo N), then either gcd{N, xy} or gcd{N, x + y} is a nontrivial factor of n. In fact, the factorizations N = ab are in 1 − 1 correspondence with pairs of integers s, t such that 0 = (t2s2) (modulo N) in the sense that image and image [Koblitz, 1987, Proposition V.3.1].

Example 13.8

372 = 72 (modulo 55).

image

To find pairs (x, y), random values of s in image are chosen, and u = s2 (modulo N) is computed. If u is a perfect square (modulo N), say u = t2 (modulo N), and both 0 ≠ (st) (modulo N) and 0 ≠ (s + t) (modulo N), then we find a factor of N.

For example, if N = 55 and s = 13, then

image

leading to the factorization

image

Of course, if we have chosen ...

Get Computer Security and Cryptography now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.