Question

Using public key cryptography, X adds a digital signature σ\sigma to message MM, encrypts ⟨M,σ⟩\langle M, \sigma \rangle, and sends it to Y, where it is decrypted. Which one of the following sequences of keys is used for the operations?

Choose one option
Official answer and solution
Official answer
D
From
Official GATE 2013 answer key

Solution

Differentiate between the key requirements for digital signatures (authenticity/non-repudiation) and public-key encryption (confidentiality).

  1. Sender X wants to sign message MM to ensure authenticity:

    • Only X has X's private key.
    • Therefore, X signs using X's private key to produce signature σ\sigma.
  2. Sender X wants to send ⟨M,σ⟩\langle M, \sigma \rangle confidentially to receiver Y:

    • To ensure only Y can read the package, X encrypts ⟨M,σ⟩\langle M, \sigma \rangle using recipient Y's public key.
  3. Upon receiving the ciphertext, receiver Y performs decryption:

    • Y decrypts the ciphertext using Y's private key to recover ⟨M,σ⟩\langle M, \sigma \rangle.
  4. Receiver Y verifies the digital signature σ\sigma:

    • Y uses sender X's public key to verify that the message indeed came from X.

Therefore:

  • Encryption sequence: X's private key followed by Y's public key.
  • Decryption sequence: Y's private key followed by X's public key.

This matches option D.

Final answer

Option (D)

Common trap

Confusing the order of decryption at the receiver: the outer layer (encrypted with Y's public key) must first be peeled off with Y's private key before the signature can be verified with X's public key.

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2013 Computer Science and Information Technology (CS)
Question
13 of 65, printed as CS Q.13
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.