Cryptography

Alice and Bob each hold an asymmetric key pair and share no secret. Alice must send a draft so only Bob can read it and Bob can confirm Alice produced it. Which key use meets both needs?

Show the answer

Correct answerC. Sign with Alice's private key and encrypt with Bob's public key

AWhy not this: Encrypting with Alice's public key lets only Alice decrypt, so Bob cannot read the draft even though the signature is valid.

BWhy not this: Bob's public key cannot sign. Encrypting with Alice's private key lets anyone with her public key read it.

CWhy this is right: Bob's public key limits reading to Bob's private key, and Alice's private-key signature proves she created it.

DWhy not this: Her public key cannot sign, since anyone holds it. Only Bob's public key can decrypt his private-key output, so nothing stays secret.

Confidentiality requires encrypting with Bob's public key so only his private key can decrypt. Origin proof requires signing with Alice's private key so anyone can verify with her public key. Encrypting with a private key gives no confidentiality, because the public key that reverses it is available to everyone.