Diffie-Hellman & Man-in-the-Middle
- 17Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
17 questions
- 1When Diffie-Hellman is used on its own, it is vulnerable to_____attacks, which can be mitigated by incorporating RSA or public key encryption.
Hint
Consider what kind of attack involves an adversary intercepting and relaying communications between two parties.
Answer
man-in-the-middle
- 2In a Diffie-Hellman exchange, Alice generates a private value 'a', and Bob generates a private value '_____'.
Hint
Think about the common letters used for the private values in the classic Alice and Bob cryptographic scenarios.
Answer
b
- 3Alice sends Bob gamodn, and Bob sends Alice gbmodn; they both use their private values and the received public value to calculate the shared secret $g^{ab} \mod_____$.
Hint
The modulus 'n' is a large prime number shared as a public parameter.
Answer
n
- 4Diffie-Hellman allows two parties to share values in public and use them with their private values to calculate a_____key that no one else can determine.
Hint
The primary goal of Diffie-Hellman is to establish a common secret between two parties over an insecure channel.
Answer
shared
- 5A man-in-the-middle attacker, like Sean, can not only read messages but also_____and retransmit them.
Hint
Consider the capabilities an attacker would need to control the communication flow between two parties.
Answer
intercept
- 6In a man-in-the-middle scenario, Sean intercepts Alice's ga and sends his own value gs back to Alice, pretending to be_____.
Hint
Sean's goal is to trick Alice into believing she is communicating with her intended recipient.
Answer
Bob
- 7After establishing a shared secret gas with Alice, Sean then initiates a separate key exchange with Bob, pretending to be_____.
Hint
To complete the full interception, Sean must also convince Bob that he is the other legitimate party.
Answer
Alice
- 8By establishing two different shared keys, one with Alice (gas) and one with Bob (gsb), Sean can_____every message between them.
Hint
With knowledge of both keys, Sean can act as a relay, seeing all traffic.
Answer
intercept
- 9Diffie-Hellman alone cannot prevent man-in-the-middle attacks because it lacks a mechanism for_____.
Hint
Consider what security property is missing if one party cannot verify the identity of the other.
Answer
authentication
- 10RSA is introduced to the Diffie-Hellman exchange to provide_____of the parties involved, typically the server.
Hint
RSA's strength in this context is its ability to ensure who sent a message.
Answer
identity verification
- 11When Bob sends his Diffie-Hellman parameter gb, he also includes a digital signature of this message, signed with his private_____, which Alice can then verify.
Hint
This key is kept secret by Bob and is used to create a signature that only his public key can verify.
Answer
key
- 12Alice performs a_____verification by applying Bob's public key to his encrypted signature and comparing it to a hash of gb.
Hint
This process confirms the authenticity and integrity of the message by checking the digital signature.
Answer
signature
- 13The combination of Diffie-Hellman and RSA is a fundamental part of internet key exchanges, such as the IKE protocol used in VPNs and the handshake using_____in HTTPS.
Hint
This protocol is crucial for securing communication over computer networks, especially for web browsing.
Answer
TLS
- 14Using only RSA for key exchange and long-term encryption presents a problem called_____, where a compromised RSA key could decrypt all past communications.
Hint
This security property ensures that compromising a long-term key does not compromise past session keys.
Answer
perfect forward secrecy
- 15Diffie-Hellman is often used to generate_____Diffie-Hellman keys, meaning they are created per session.
Hint
This term describes something that lasts for a very short time.
Answer
ephemeral
- 16RSA is used to provide authenticity and verify identity, while Diffie-Hellman is used for establishing the_____secret because it's a very quick way to do so.
Hint
Diffie-Hellman's primary function is to enable the secure creation of a common secret.
Answer
shared
- 17RSA is generally too_____for encrypting entire messages, so it's typically used to derive symmetric keys for faster encryption algorithms like AES.
Hint
Consider the computational overhead of RSA compared to symmetric ciphers.
Answer
slow

Ask anything
We've read this whole study set, so questions about it get the best answers.