1. Home
  2. Explore
  3. Computer Science
  4. Diffie-Hellman & Man-in-the-Middle

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Diffie-Hellman & Man-in-the-Middle

  • 16Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Diffie-Hellman Vulnerabilities
  • spaceFlip card
  • KI knew it
  • DI didn't know it
  • ←Previous card
  • →Next card

What is a major vulnerability of Diffie-Hellman when used on its own?

Tap to flipClick to flipspace

Diffie-Hellman is vulnerable to man-in-the-middle attacks when used on its own.

Or swipe the card

16 cards

  1. What is a major vulnerability of Diffie-Hellman when used on its own?

    Diffie-Hellman is vulnerable to man-in-the-middle attacks when used on its own.

  2. Who is involved in a basic Diffie-Hellman key exchange?

    Alice and Bob are involved, along with shared public parameters: a generator (g) and a large prime number (n).

  3. What private values do Alice and Bob generate in a Diffie-Hellman exchange?

    Alice generates a private value 'a', and Bob generates a private value 'b'.

  4. What public values do Alice and Bob exchange in Diffie-Hellman?

    Alice sends gag^aga (mod n) and Bob sends gbg^bgb (mod n).

  5. How do Alice and Bob calculate the shared key in Diffie-Hellman?

    Both calculate gabg^{ab}gab (mod n).

  6. What is the role of the man-in-the-middle (Shawn) in a Diffie-Hellman attack?

    Shawn intercepts messages between Alice and Bob, establishes separate shared secrets with each, and relays messages.

  7. Why is Diffie-Hellman 'dead in the water' on its own against MITM attacks?

    It provides no authentication mechanism to verify the identity of the parties exchanging keys, allowing an attacker to impersonate either side.

  8. How does RSA or public key encryption help prevent man-in-the-middle attacks in Diffie-Hellman?

    RSA provides authentication by allowing one party (e.g., Bob, the server) to digitally sign their Diffie-Hellman parameter, which Alice can then verify using Bob's public key.

  9. What does Bob send to Alice to prevent MITM attacks when combining Diffie-Hellman with RSA?

    Bob sends gbg^bgb along with a digital signature of gbg^bgb signed with his private key.

  10. What is 'signature verification' in the context of combined Diffie-Hellman and RSA?

    Alice takes Bob's Diffie-Hellman parameter (gbg^bgb) and its signature, applies Bob's public key to the signature, and checks if it matches her own computed hash of gbg^bgb.

  11. Why is combining Diffie-Hellman with RSA crucial for secure internet key exchanges?

    It allows for both the establishment of a shared secret (Diffie-Hellman) and the authentication of the parties (RSA), preventing man-in-the-middle attacks.

  12. Give examples of internet protocols that use a combination of Diffie-Hellman and RSA.

    IKE protocol (for VPNs) and the TLS handshake (for HTTPS) are examples.

  13. What is 'perfect forward secrecy' and why is it important in key exchange?

    Perfect forward secrecy ensures that if a long-term private key (like an RSA private key) is compromised in the future, past communications encrypted using ephemeral session keys cannot be decrypted.

  14. Why is Diffie-Hellman preferred over using RSA alone for session key encryption?

    Diffie-Hellman, particularly ephemeral Diffie-Hellman, provides perfect forward secrecy, meaning session keys are not compromised even if the long-term RSA key is later broken.

  15. What does 'ephemeral' mean in the context of Diffie-Hellman keys?

    Ephemeral means temporary or short-lived, implying that new Diffie-Hellman keys are generated for each session.

  16. Why is RSA generally not used for long-term encryption of entire messages?

    RSA is computationally much slower than symmetric-key algorithms like AES, making it inefficient for encrypting large amounts of data.

Card 1 of 16
Card 1 of 16

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent