+ All Categories
Home > Documents > RSA Numbers

RSA Numbers

Date post: 23-Feb-2016
Category:
Upload: feryal
View: 35 times
Download: 1 times
Share this document with a friend
Description:
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 developed the concept Ron R ivest , Adi S hamir and Leonard A dleman at MIT First published and made publicly available in 1977. - PowerPoint PPT Presentation
20
RSA Numbers by: Brandon Hacay & Conrad Allen
Transcript
Page 1: RSA Numbers

RSA Numbersby: Brandon Hacay & Conrad Allen

Page 2: RSA Numbers

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 Rivest, Adi Shamir and

Leonard Adleman at MIT

o First published and made publicly

available in 1977

Page 3: RSA Numbers

History of RSA Numbers• Ronald Rivest

o Created MD5 hash function, as well as MD2, MD4, MD6, RC2, RC4, RC5, RC6

• Avi Shamiro Co-creator of differential cryptanalysis

• Leonard Adlemano Created DNA/biomolecular computing

Page 4: RSA Numbers

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 testedo Due to its top-secret nature, Cocks’ papers and ideas

were not made publicly available until 1998

Page 5: RSA Numbers

Basics of Encryption Keys• RSA is an example of public-key, or

asymmetric cryptologyo 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

Page 6: RSA Numbers

Public Key Creation• Find the product of two distinct prime

numbers.o n = p*qo n is used as the modulus for both the public and

private keys.

• Solve Euler’s totient functiono φ(n) = (p-1)(q-1)

Page 7: RSA Numbers

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.

Page 8: RSA Numbers

Encoding and Decoding• To encode a message M solve:

o C = Memod(n)o M < n

• Solve for the decoding exponent: o d = e-1mod(φ(n))

• To decode a message M solve:o M = Cdmod(n)

Page 9: RSA Numbers

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

Page 10: RSA Numbers

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 = Memod(n) = 357mod(943)C = 545

● The encoded message 545 is sent to User Y.

Page 11: RSA Numbers

Example● d = e-1mod(φ(n))

d= 7-1mod(880) = 503

● M = Cdmod(n) = 545503mod(943)M = 35

Page 12: RSA Numbers

Exponent Algorithm• RSA can use very large

exponents.

• M = Cdmod(n) = 545503mod(943)

• Running time = O(e)

• total operation in example:o 503 operations

Page 13: RSA Numbers

Repeated Squaring Algorithm• Using this algorithm you get:

545503mod943 = (545*[(545*545)mod943]251)mod943

= (545*923251)mod943

= (545*(923*[(923*923)mod943]150)mod943))mod943

= (545*[(923*400150)mod943]mod943)

• Running time = O(log2(e))

• Total operations for example:o 9 operations

Page 14: RSA Numbers

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

Page 15: RSA Numbers

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

Page 16: RSA Numbers

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 crackingRSA and integer factorization

Page 17: RSA Numbers

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

Page 18: RSA Numbers

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

Page 19: RSA Numbers

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

Page 20: RSA Numbers

Questions?


Recommended