I was preparing for competitive exam, and I came across this question. I had a lot of discussion with my friends before I resorted to posting it here and I wanted myself to be clear on this.
Let $M$ be a confidential email that Alice wants to send to Bob, $K_B$ be Bob’s encryption public key, and $K_A^{-1}$ be Alice’s private key for signing. Which of the following options would be the best choice for protecting confidential emails?
(A) Send $E_{K_{B}}(M),Sign_{K_A^{-1}}(K_B)$
(B) Send $E_{K_B}(M),Sign_{K_{A}^{-1}}(M)$
(C) Send $E_{K_B}(M),Sign_{K_{A}^{-1}}(E_{K_B}(M))$
(D) Send $E_{K_B}(M),Sign_{K_{A}^{-1}}(K_{A}^{+1}(M))$
I marked (B), but correct answer is given to be (C).
I understand the first part, that we are encrypting the message with Bob’s public key, but my understanding says, that we sign the message using Alice’s private key and send it to Bob along with the encrypted message.
But seems like option (C) says that along encrypted message, Alice should sign the encrypted message and then should send this signature along with the encrypted message to Bob.
My query is as per option (C), Why are we signing the whole encrypted message instead of the original message as shown in (B).