« previous | Thursday, April 25, 2013 | next »
From the Practice Final
Prime Fields
Find
,
,
in
realized as
First Way
Tricks: While you can use Extended Euclidean Algorithm, you can do some faster trickery:
Key:
, therefore
and
.
What if we can do the same thing with
?
Second Way
Easier way to figure out
:
Third Way
Third way to find
(Extended Euclidean Algorithm):
Look for polynomials
with
Therefore
and our inverse
Note: EEA is the safer method for more complicated inverses, e.g. 
Elliptic Curve Cryptography
Suppose you would like to transmit "21" in an elliptic curve cipher via the elliptic curve
. In particular, you will transmit the point. (note: 593 is prime)
We want to find a point
, where
.
Which
would work?
Nothing more than a Jacobi square-root question in disguise!
 |
 |
 |
|
| 0 |
210 |
228 |
-1
|
| 1 |
211 |
432 |
-1
|
| 2 |
212 |
123 |
1
|
| 3 |
213 |
493 |
|
| … |
… |
… |
… |
|
So
works
Elliptic Curves
(Not on practice final... yet)
Suppose you are trying to compute
on
with
In particular, you observe
and
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 [2^4+2^6+\ldots+2^{21}(2,1) \oplus [2^{23}](2,1) = (390104967,128395638) \oplus (520835552, 974225979)}
Suppose the last addition is undefined 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}
. Find a non-trivial factor of 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}
.
...what? (Sherlock Holmes moment where an addition is undefined and therefore we find a non-trivial factor)
If the addition is undefined, we must 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 520835552-390104967}
is non-invertible 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}
.
In other words, 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 \mathrm{gcd}(520835552-390104967, n) > 1}
, so one of the factors of the difference is a factor of 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}
, namely
26927 (or 63719)