GATE / CS ARCHIVE

SIMILAR QUESTIONS / COMPUTER NETWORKS

Choose signer private and public keys

2 questions solved the same way, newest first. Back to Computer Networks

How these are solved

Sign with the signer private key and verify with the signer public key; distinguish recipient keys. Digest-signing output and verification-key queries are complementary applications, not identical repeats.

2 marks · MCQ
Not in GATE 2027 syllabusReport issue

Network Security

Question 52, GATE 2016: B digitally signs message m for A. Kx− denotes x's private key, Kx+ its public key; Kx(m) denotes the paper's encryption notation and H(m) its message digest. Which pair should B send? A:{m,KB+(H(m))}. B:{m,KB−(H(m))}. C:{m,KA−(H(m))}. D:{m,KA+(m)}.
Tap to enlarge
Your answer
Answer & solution

Official answer: B

The signer is B, so the signature is produced with B’s private key on the message digest. A verifies it with B’s public key. The transmitted pair is {m, KB−(H(m))}, B. This is the exam’s simplified signature notation; practical signatures use a secure signature construction and encoding rather than arbitrary raw encryption.

A digital signature authenticates the sender and detects message modification; it does not by itself hide the message. The public key is for verification, not for creating a signature attributable only to B. Using A's key would authenticate the wrong party or provide encryption rather than a B signature. A verifies the received digest signature using B's public key and compares it to the digest independently computed from m. Practical schemes supply the necessary secure padding and signature encoding.

Original paper, page 20 · Answer key

1 mark · MCQ
Not in GATE 2027 syllabusReport issue

Network Security

Question 23, GATE 2016: Anarkali digitally signs a message and sends it to Salim. What key does Salim need to verify? A Anarkali’s public; B Salim’s public; C Salim’s private; D Anarkali’s private.
Tap to enlarge
Your answer
Answer & solution

Official answer: A

A digital signature is verified using the signer’s public key. Since Anarkali signed, Salim uses Anarkali’s public key, A.

Signing and encryption serve different purposes. Anarkali signs with her private key; anyone holding an authentic copy of her public key can verify origin and integrity. Salim’s private key would be relevant to decrypting content encrypted for him, not verifying someone else’s signature. Verification also presupposes that the public key really belongs to Anarkali.

Original paper, page 31 · Answer key