RSA Encryption, Lecture Notes - Computer Science, Study notes of Number Theory

Prof. Zeph Grunschlag, Computer Science, RSA Encryption, RSA Cryptography, Fast Exponentiation, Extended Euler’s Algorithm, Modular inverses, Fermat’s Little Theorem, Chinese Remainder Theorem, Columbia, Lecture Notes

Typology: Study notes

2010/2011

Uploaded on 11/05/2011

yorket
yorket 🇺🇸

4.4

(38)

276 documents

1 / 94

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
RSA Encryption
Zeph Grunschlag
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e

Partial preview of the text

Download RSA Encryption, Lecture Notes - Computer Science and more Study notes Number Theory in PDF only on Docsity!

RSA Encryption

Zeph Grunschlag

Agenda

RSA Cryptography

 A useful and basically unbreakable method for encoding messages

Needed for implementing RSA:

 Fast Exponentiation

 Extended Euler‟s Algorithm

 Modular inverses

 FLT (Fermat‟s Little Theorem)

 CRT (Chinese Remainder Theorem)

There are several encryption methods. Perhaps

the simplest “unbreakable” system is the RSA

(Rivest, Shamir, Adleman) system.

FrogsRUs.com provides a large number N (e.g. 1024 bit binary number) and an encryption exponent e. Usually the

server communicates

these directly to web

browser behind the

scenes.

N, e

Mr. Smiley‟s browser then converts his

message into numbers, as in the modular

encryption that we saw before. The

letters are then put together into number

blocks with each block less than N. Mr.

Smiley‟s browser exponentiates each

number block by the exponent e modulo N and broadcasts these garbled

blocks back to FrogsRUs.com

N = 4559, e = 13.

Smiley Transmits: “Last name Smiley”

 L A S T N A M E S M I L E Y

m e^ mod N

N = 4559, e = 13.

Smiley Transmits: “Last name Smiley”

 L A S T N A M E S M I L E Y

 1201 1920 0014 0113 0500 1913 0912 0525

m e^ mod N

N = 4559, e = 13.

Smiley Transmits: “Last name Smiley”

 L A S T N A M E S M I L E Y

 1201 1920 0014 0113 0500 1913 0912 0525

 120113 mod 4559 , 192013 mod 4559, …

 2853 0116 1478 2150 3906 4256 1445 2462

m e^ mod N

FrogsRUs.com receives the encrypted

blocks n = m e^ mod N. They have a private decryption exponent d which when applied to n recovers the original blocks m : (m e^ mod N )^ d^ mod N = m

For N = 4559, e = 13 the

decryptor d = 3397.

N = 4559, d = 3397

 2853 0116 1478 2150 3906 4256 1445 2462

 28533397 mod 4559 , 01163397 mod 4559, …

N = 4559, d = 3397

 2853 0116 1478 2150 3906 4256 1445 2462

 28533397 mod 4559 , 01163397 mod 4559, …

 1201 1920 0014 0113 0500 1913 0912 0525

N = 4559, d = 3397

 2853 0116 1478 2150 3906 4256 1445 2462

 28533397 mod 4559 , 01163397 mod 4559, …

 1201 1920 0014 0113 0500 1913 0912 0525

 L A S T N A M E S M I L E Y

The key to security of RSA cryptosystem:

The public key (N,e) must be such that

it is very difficult for Snoop Snoopy

Snoop to figure out what d is, yet very

simple for FrogsRUs.com to come up

with.

Fast Modular Exponentiation

A: By taking the mod after each

multiplication.

EG, a more lucid example:

233 mod 30 

Fast Modular Exponentiation

A: By taking the mod after each

multiplication.

EG, a more lucid example:

233 mod 30  -7^3 (mod 30)