Question
Using public key cryptography, X adds a digital signature to message , encrypts , and sends it to Y, where it is decrypted. Which one of the following sequences of keys is used for the operations?
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).
-
Sender X wants to sign message to ensure authenticity:
- Only X has X's private key.
- Therefore, X signs using X's private key to produce signature .
-
Sender X wants to send confidentially to receiver Y:
- To ensure only Y can read the package, X encrypts using recipient Y's public key.
-
Upon receiving the ciphertext, receiver Y performs decryption:
- Y decrypts the ciphertext using Y's private key to recover .
-
Receiver Y verifies the digital signature :
- 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.
Option (D)
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.