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

  • 17Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Diffie-Hellman Vulnerabilities
When Diffie-Hellman is used on its own, it is vulnerable to
attacks, which can be mitigated by incorporating RSA or public key encryption.

17 questions

  1. 1
    When 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

  2. 2
    In 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

  3. 3
    Alice sends Bob gamod  ng^a \mod ngamodn, and Bob sends Alice gbmod  ng^b \mod ngbmodn; 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

  4. 4
    Diffie-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

  5. 5
    A 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

  6. 6
    In a man-in-the-middle scenario, Sean intercepts Alice's gag^aga and sends his own value gsg^sgs 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

  7. 7
    After establishing a shared secret gasg^{as}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

  8. 8
    By establishing two different shared keys, one with Alice (gasg^{as}gas) and one with Bob (gsbg^{sb}gsb), Sean can
    _____
    every message between them.
    Hint

    With knowledge of both keys, Sean can act as a relay, seeing all traffic.

    Answer

    intercept

  9. 9
    Diffie-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

  10. 10
    RSA 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

  11. 11
    When Bob sends his Diffie-Hellman parameter gbg^bgb, 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

  12. 12
    Alice performs a
    _____
    verification by applying Bob's public key to his encrypted signature and comparing it to a hash of gbg^bgb.
    Hint

    This process confirms the authenticity and integrity of the message by checking the digital signature.

    Answer

    signature

  13. 13
    The 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

  14. 14
    Using 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

  15. 15
    Diffie-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

  16. 16
    RSA 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

  17. 17
    RSA 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

1 of 17
Question 1 of 17

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent