How does 'epa-encrypt' decide which private key to use? If I have two private keys, and I've only shared one of my public keys with the recipient, and I encrypt with
epa-encrypt-region and select the recipient's public key, which one of my private keys will be used to encrypt?
For example, when I execute
epa-encrypt-region, I get the following menu to choose which public key to encrypt with:
Select recipients for encryption. If no one is selected, symmetric encryption will be performed. - `M-x epa-mark-key' to mark a key on the line - `M-x epa-unmark-key' to unmark a key on the line [Cancel][OK] u 372XXXXX Joe Blow <[email protected]> u 1F0XXXXX Joe Blow <[email protected]> - 7F2XXXXX Jane Doe <ja[email protected]> - A4DXXXXX John Doe <[email protected]>
and I am
Joe Blow with two private keys, and I want to send a message to Jane Doe, who only has my gmail public key. Thus, I need to encrypt with my gmail private key. How do I know if
epa-encrypt is using the right private key for encryption?
Or does 'epa-encrypt' or the key-ring auto-magically know if the recipient has my public key?