Presentation is loading. Please wait.

Presentation is loading. Please wait.

RSA Numbers by: Brandon Hacay & Conrad Allen. History of RSA Numbers The letters in “RSA” are simply the initials of the people who are credited as having.

Similar presentations


Presentation on theme: "RSA Numbers by: Brandon Hacay & Conrad Allen. History of RSA Numbers The letters in “RSA” are simply the initials of the people who are credited as having."— Presentation transcript:

1 RSA Numbers by: Brandon Hacay & Conrad Allen

2 History of RSA Numbers The letters in “RSA” are simply the initials of the people who are credited as having developed the concept o Ron R ivest, Adi S hamir and Leonard A dleman at MIT o First published and made publicly available in 1977

3 History of RSA Numbers Ronald Rivest o Created MD5 hash function, as well as MD2, MD4, MD6, RC2, RC4, RC5, RC6 Avi Shamir o Co-creator of differential cryptanalysis Leonard Adleman o Created DNA/biomolecular computing

4 History of RSA Numbers A man named Clifford Cocks also described the same system a few years earlier in 1973 o Developed in the U.K. for the GCHQ, it would have required computing power deemed to expensive at the time, so it was never actually implemented or tested o Due to its top-secret nature, Cocks’ papers and ideas were not made publicly available until 1998

5 Basics of Encryption Keys RSA is an example of public-key, or asymmetric cryptology o There is a public key (the encryption key) and a private key (the decryption key) o The encryption key is publicly available and used to create the encrypted message to be transmitted, while a privately-held (but mathematically related) decryption key is used to decipher it

6 Public Key Creation Find the product of two distinct prime numbers. o n = p*q o n is used as the modulus for both the public and private keys. Solve Euler’s totient function o φ(n) = (p-1)(q-1)

7 Public Key Creation Choose an integer e such that: o 1 < e < φ(n) o e and φ(n) must be coprime. e is used as the public key exponent to encode messages.

8 Encoding and Decoding To encode a message M solve: o C = M e mod(n) o M < n Solve for the decoding exponent: o d = e -1 mod(φ(n)) To decode a message M solve: o M = C d mod(n)

9 Example ●User Y selects p and q. ○p = 23, q = 41 ●n = p*q = (23)*(41) = 943 ●φ(n) = (p-1)(q-1) = (22)*(40) = 880 ●e and φ(n) must be coprime and 1 < e < φ(n) ○e = 7

10 Example ●n and e are the public key so User X know their values. ○n = 943, e = 7 ●User X wants to send a message to User Y. ○M = 35 ●C = M e mod(n) = 35 7 mod(943) C = 545 ●The encoded message 545 is sent to User Y.

11 Example ●d = e -1 mod(φ(n)) d= 7 -1 mod(880) = 503 ●M = C d mod(n) = 545 503 mod(943) M = 35

12 Exponent Algorithm RSA can use very large exponents. M = C d mod(n) = 545 503 mod(943) Running time = O(e) total operation in example: o 503 operations

13 Repeated Squaring Algorithm Using this algorithm you get: 545 503 mod943 = (545*[(545*545)mod943] 251 )mod943 = (545*923 251 )mod943 = (545*(923*[(923*923)mod943] 150 )mod943))mod943 = (545*[(923*400 150 )mod943]mod943) Running time = O(log 2 (e)) Total operations for example: o 9 operations

14 Potential Risks As with any encryption system, the private key used to decrypt the message can still be vulnerable to social engineering or careless storage of the private key information Vulnerable with small exponent (“e”) values and small message values (“m”) for m^e

15 Potential Risks Vulnerable if the same clear text message is sent to “e” or more people with different “N” values (“Chinese Remainder Theorem”) Vulnerable if not padded since RSA is not “semantically secure” o Attacker can guess at the potential messages being sent, encrypt it using RSA and the public key, and compare the encrypted messages if the message isn’t padded first

16 The “RSA Problem” Can a message encrypted using RSA be efficiently decrypted while only knowing the public key? (n, e) RSA Foundation has created the RSA Factoring Challenge to spur research into cracking RSA and integer factorization

17 RSA Factoring Challenge The problem: you are given a number “n” that is the product of two prime numbers, “p” and “q”. Find these factors. Some cash rewards reached tens of thousands of dollars Largest potential reward was $100,000

18 RSA Factoring Challenge Example of a RSA number and its factors: Amount of computing needed was the equivalent of 75 years of computing on a 2.2GHz single-core processor

19 RSA Factoring Challenge Largest RSA number in the challenge is RSA-2048, which is not expected to be solved anytime soon without significant advances in integer factorization

20 Questions?


Download ppt "RSA Numbers by: Brandon Hacay & Conrad Allen. History of RSA Numbers The letters in “RSA” are simply the initials of the people who are credited as having."

Similar presentations


Ads by Google