Question

Consider that BB wants to send a message mm that is digitally signed to AA. Let the pair of private and public keys for AA and BB be denoted by Kx−K_x^- and Kx+K_x^+ for x=A,Bx = A, B, respectively. Let Kx(m)K_x(m) represent the operation of encrypting mm with a key KxK_x and H(m)H(m) represent the message digest. Which one of the following indicates the CORRECT way of sending the message mm along with the digital signature to AA?

Choose one option
Official answer and solution
Official answer
B
From
Official GATE 2016 answer key

Solution

Recall the fundamental mechanism of digital signatures using public key cryptography and cryptographic hash functions.

Key definitions:

  • Kx−K_x^-: Private key of entity xx (known only to xx).
  • Kx+K_x^+: Public key of entity xx (known to everyone).
  • H(m)H(m): Cryptographic hash / message digest of message mm.

Digital Signature Generation:

  • A digital signature provides non-repudiation and authentication of the sender BB.
  • Only the sender BB possesses KB−K_B^-.
  • Therefore, the signature is created by encrypting the message digest H(m)H(m) with BB's private key: Signature=KB−(H(m))\text{Signature} = K_B^-(H(m)).

Transmission:

  • Sender BB sends the plaintext message mm along with the digital signature: {m,KB−(H(m))}\{m, K_B^-(H(m))\}.

Verification by Receiver AA:

  • AA computes H(m)H(m) directly from mm.
  • AA decrypts KB−(H(m))K_B^-(H(m)) using BB's public key KB+K_B^+ to obtain the sent digest.
  • If both digests match, AA confirms that the message came from BB and was not altered.

This corresponds to option B.

Final answer

B

Common trap

Confusing encryption for confidentiality (which uses the receiver's public key KA+K_A^+) with digital signing for authentication (which uses the sender's private key KB−K_B^-).

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

Source

Paper
GATE 2016 Computer Science and Information Technology (CS) Session 1
Question
62 of 65, printed as CS Q.52
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.