Public Key Encryption Flashcards

1
Q

What is RSA?

A

A public encryption algorithm, where the plaintext and ciphertext are integers between 0 and n-1

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

n=pq. What are p and q?

A

Very large primes

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

In RSA, what are: n, z, e, and d?

A

n = pq. z = (p-1)(q-1). e is smaller than z, and has no common factors with z. d is such that ed - 1 is divisible by z, or that (ed)mod(z) = 1.

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

(n, e) or (n, d). Which is public and which is private?

A

(n, e) is public.

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

How do you encrypt a message M using RSA?

A

C = M^e mod(n)

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

How do you decrypt ciphertext c using RSA?

A

M = C^d mod(n)

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

True or false? n must be kept secret in RSA, and so must d.

A

False. d must be kept private, but not n.

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

True or false? For each pair p and q, there is only one pair e and d?

A

False.

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

When using RSA keys for authentication, how is this done? Say for instance that Bob wants to authenticate a message which Alice has sent him.

A

If Alice just wants to authenticate her message, she can sign it with her private key. Bob can verify that Alice sent the message by checking the signature using Alice’s public key.

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

How can RSA be beaten?

A

Brute force

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

What is Diffie Hellman used for mainly?

A

Session key exchanges

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

What principle is Diffie Hellman based on?

A

That is is very difficult to compute discrete logarithms

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

If we send the message using Diffie Hellman: a^x mod(q), which part of this is secret information?

A

x is secret to the sender.

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