Professional Documents
Culture Documents
Modern Cryptography
Matt Valeriote
McMaster University
6/03/2017
Challenges
Which of the following are primes?
Answers
Only 101 is prime.
2, 310 = 2 · 3 · 5 · 7 · 11,
13, 013 = 7 · 11 · 13 · 13,
11, 663 = 107 · 190,
12,119 is prime.
Two numbers are said to be relatively prime if they have no common prime
divisors, e.g. 6 and 35 are relatively prime.
The greatest common divisor (gcd) of two numbers is the largest number
that divides into both of them. The gcd of 60 and 42 is 6.
We all know how to quickly and efficiently add, subtract, multiply, and
divide any two numbers.
Fact #3: There is a fast way to find the greatest common divisor of two
numbers (Euclidean method).
Fact #4: There is a fast way to to test if a number is prime (AKS method)
and to generate large primes.
Fact #5: There is no known fast way to factor large numbers.
It is surprisingly difficult!
A recent factoring speed record involved an international research team
factoring a 232-digit number. The team used hundreds of processors and
over 2 years of intensive work to factor the number. On a single fast PC, it
would have taken 1,500 years to factor the number.
Using current technology, it would take over 3 trillion years (more than 200
times the age of the universe) to factor a 620 digit number.
Challenges
Compute the following:
33 mod 12. Since 33/12 has remainder 9 then 33 ≡ 9 mod 12.
99 mod 12
123 + 456 mod 21
123 · 456 mod 21
215 mod 10
260 mod 10
887 mod 187.
Answers
Compute the following:
99 ≡ 3 mod 12 (since 99/12 has remainder 3).
123 + 456 ≡ 12 mod 21 (123 + 456 = 579 and 579/21 has remainder 12).
(alternate) 123 ≡ 18 mod 21 and 456 ≡ 15 mod 21, so
123 + 456 = 18 + 15 = 33 ≡ 12 mod 21.
123 · 456 ≡ 18 · 15 ≡ 270 mod 21 and 270 ≡ 18 mod 21.
215 = 32768 ≡ 8 mod 10
260 = 1152921504606846976 ≡ 6 mod 10.
(alternate) 230 = (215 )(215 ) ≡ 8 · 8 = 64 ≡ 4 mod 10 and so
260 = (230 )(230 ) ≡ 4 · 4 = 16 ≡ 6 mod 10
887 ≡ 11 mod 187.
Alice’s Keys
Select two large prime numbers p and q at random.
Compute the system modulus n = p · q and m = (p − 1)(q − 1).
Choose at random a number e with 1 < e < m that is relatively prime to m.
Find a number d with e · d ≡ 1 mod m and with 0 ≤ d < m.
Alice’s Public Encryption Key is the pair (e, n).
Alice’s Private Decryption Key is the triple (d , p, q ).
The RSA system is the most popular crypto system and is used to secure
internet traffic and other forms of communication.
Using present technology, keys consisting of 600 digits are considered
secure.
As technology advances, it is easy to maintain security by increasing key
sizes.
The discovery of a fast method for factoring large numbers will make the
RSA system obsolete.
A big open problem in mathematics/computer science is whether or not
there is a fast factoring method.
Warning: If private keys are not managed properly, then any system,
including RSA, is not very useful.