MATH 470 Lecture 7
« previous | Tuesday, February 5, 2013 | next »
RSA
- Take large blocks of text
- convert letters to
- convert that block into a large integer base 26
- perform modular arithmetic on blocks
Sage
- ord(char) converts char to a number
- list(string) produces an array of characters
- map(func, array) does what it says.
Hardness of Multiplication and Factoring
Recall:
- Grade school algorithm takes bit operations
- Fast-Fourier Multiplication takes bit operations
Factoring a -digit integer takes a lot longer: bit operations (Pollard-??? method)
Breaking RSA Can be done via integer factorization: This is why we care about complexity.
To factor , we could do trial division by all primes up to . If has Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle d} digits, then this would be:
Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle O(\sqrt{n} \, d \, \log{(d)} \, \log{(\log{(d)})}) = O(10^{\frac{d}{2}} \, d\, \log{(d)} \, \log{(\log{(d)})})}
We'll study more about factoring soon: in fact square roots mod Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle n} are very important in factoring.
Warm-up
Since FLT says Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle a^{p-1} \equiv 1 \pmod{p}} for Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle p \nmid a} , can we use this for square roots?
Does Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle sqrt(3)} exist mod 7?
We know Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle 3^{7-1} \equiv 1 \pmod{7}}
by FLT.
if \sqrt{3} did exist, we would have Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle sqrt{3}^6 \equiv 1 \pmod{7}}
However, Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \sqrt{3}^6 \equiv 3^3 \equiv 27 \equiv -1 \pmod{7}} (contradiction!)
What's up?
Legendre Symbol
More generally, we define
Examples:
Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \begin{align} \left( \frac{3}{7} \right) &= -1 \\ \left( \frac{4}{p} \right) &= 1 \end{align}}
Lemma
Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left(\frac{a}{p} \right) = a^{\frac{p-1}{2}} \pmod{p}}
The fastest current factoring algorithm appears to have complexity
<math>O \left( \mathrm{e}^{d^{\frac{1}{3}}} \, d^{\frac{2}{3}} \right)