Week 2 - RSA Flashcards

1
Q

What is RSA?

A

used to generate a public + private key pair

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what is the first step?

A

Identify 2 large distinct prime numbers P and Q

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is Step 2 (calculate n)?

A

n = p * q

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is Euler’s function ϕ(n), and how is it calculated for RSA?

A

number of positive integers up to value of n, co prime with n

ϕ(n)=(p−1)(q−1)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what is the public key in RSA?

A

e

e must be < ϕ(n) (euler’s function) and a COPRIME (prime and not a factor)

e is paired with n (e,n) <- public key

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How is the private key
D calculated in RSA?

A

d = e^-1 mod (ϕ(n) )

(d,n) <- private key

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

hat are the RSA encryption and decryption formulas?

A

Encryption=(plaintext)^e mod n

Decryption= (ciphertext)^d mod (n)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Toy example

A

p = 5 q = 11

n = 5 * 11 = 55

ϕ(n)=(5−1)(11−1)
= 4 * 10
= 40

e < 40 & e must be a prime and not be a factor

e = 7

d = 7 ^-1 mod (40)

7 d= 1 mod (40)
d = 23

public key = (7,55)
private key = (23,55)

Encryption (public key)

p = 2

2^7 mod 55 = 18

Decryption (privatekey)

C = 18

18^23 mod 55 = 2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly