Skip to content

GATE CS 2017 Set 1 Q15 — Data Link Layer: Framing, Error Detection, MAC, Ethernet Bridging

Explain with AI

A sender SS sends a message mm to receiver RR, which is digitally signed by SS with its private key. In this scenario, one or more of the following security violations can take place.

  1. SS can launch a birthday attack to replace mm with a fraudulent message
  2. AA third party attacker can launch a birthday attack to replace mm with a fraudulent message
  3. RR can launch a birthday attack to replace mm with a fraudulent message

Which of the following are possible security violations?

Choose one option
View worked solution

Answer: B

To understand which security violations are possible via a birthday attack, let us analyze how digital signatures and hash collisions work.

1. Digital Signature Mechanism

When sender SS digitally signs a message mm:

  1. SS computes the hash of the message: h=H(m)h = H(m).
  2. SS encrypts the hash with their private key: Signature=ESpriv(h)\text{Signature} = E_{S_{\text{priv}}}(h).
  3. The receiver RR decrypts the signature using SS's public key to retrieve hh, and verifies if H(m)=hH(m) = h.

2. Birthday Attack vs. Second Pre-image Attack

  • Birthday Attack (Collision Resistance Violation): The attacker has the freedom to choose/generate both messages m1m_1 and m2m_2 to find a pair such that H(m1)=H(m2)H(m_1) = H(m_2). The complexity of finding such a collision is O(2n/2)O(2^{n/2}), where nn is the hash size.
  • Second Pre-image Attack: The message m1m_1 (and thus its hash H(m1)H(m_1)) is already fixed. The attacker must find a different message m2m_2 such that H(m2)=H(m1)H(m_2) = H(m_1). The complexity for this is O(2n)O(2^n), which is computationally infeasible and cannot be solved using a birthday attack.

3. Evaluating the Statements

  • Statement I (Sender SS): Since SS is the creator of the message, SS can offline generate a pair of messages—a legitimate message mm and a fraudulent message m′m'—such that H(m)=H(m′)H(m) = H(m') using a birthday attack. SS signs mm and sends it to RR. Later, SS can claim they actually signed and sent m′m' (repudiation). Thus, I is a possible security violation.
  • Statements II and III (Third-party AA or Receiver RR): Once SS has signed and sent the message mm, the target hash H(m)H(m) is fixed. For AA or RR to replace mm with a fraudulent message m′m' that has the same signature, they must find m′m' such that H(m′)=H(m)H(m') = H(m) for the fixed H(m)H(m). This requires a second pre-image attack, not a birthday attack. Thus, II and III are not possible via a birthday attack.

Hence, only statement I is a possible security violation.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Data Link Layer: Framing, Error Detection, MAC, Ethernet Bridging questions