Public Key Encryption Flashcards
What is RSA?
A public encryption algorithm, where the plaintext and ciphertext are integers between 0 and n-1
n=pq. What are p and q?
Very large primes
In RSA, what are: n, z, e, and d?
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.
(n, e) or (n, d). Which is public and which is private?
(n, e) is public.
How do you encrypt a message M using RSA?
C = M^e mod(n)
How do you decrypt ciphertext c using RSA?
M = C^d mod(n)
True or false? n must be kept secret in RSA, and so must d.
False. d must be kept private, but not n.
True or false? For each pair p and q, there is only one pair e and d?
False.
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.
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 can RSA be beaten?
Brute force
What is Diffie Hellman used for mainly?
Session key exchanges
What principle is Diffie Hellman based on?
That is is very difficult to compute discrete logarithms
If we send the message using Diffie Hellman: a^x mod(q), which part of this is secret information?
x is secret to the sender.