Department of Electronics: Cryptography Spring 2016
Department of Electronics: Cryptography Spring 2016
Cryptography
Spring 2016
The RSA Algorithm
March 14th/29th 2016
RSA setup
Alice and Bob, no previous contact
Transmit secure message
No time for courier service, etc
All information obtained by potential evil observer, Eve
Is it possible to send message so that Bob can read it but Eve can
not?
Alice needs to send a key by some mechanism, which is not possible
by this method
RSA Algorithm
Bob chooses two distinct large primes p and q and multiplies them
together
n=pq
He also chooses and encryption exponent e
gcd(e, (p 1)(q 1)) = 1.
He sends the pair (n, e) to Alice but keeps the values of p and q secret
Alice never needs to know p and q to send her message to Bob securely
Alice writes her message as a number m
If m is larger than n, she breaks the message into block, each of which is
less than n
(lets assume for the moment that m < n)
(mod n)
m = cd
so Bob can read the message
(mod n)
RSA Example
RSA explanation