#11 fixed
Luke Le

An execption is thrown if a message is encrypted for multiple recipients but not all secret keys are found

Reported by Luke Le | December 1st, 2011 @ 02:12 AM

If a pgp message is encrypted for multiple recipients, gpg tries to find
the secret key for each single recipient and tries to decrypt it, even
if it has already found a matching secret key, and successfully decrypted the message.

[01.12.11 01:12:27] Luke Le: [GNUPG:] ENC_TO E8E2030800D5ED96 16 0 [GNUPG:] USERID_HINT E8E2030800D5ED96 Lukas Pitschl lukas@dressyvagabonds.com [GNUPG:] NEED_PASSPHRASE E8E2030800D5ED96 E58271326F9F4937 16 0 [GNUPG:] GOOD_PASSPHRASE [GNUPG:] ENC_TO 5E5FEFD01051115C 16 0 [GNUPG:] ENC_TO E3404E04D53A7B62 1 0 [GNUPG:] NO_SECKEY E3404E04D53A7B62 [GNUPG:] NO_SECKEY 5E5FEFD01051115C [GNUPG:] BEGIN_DECRYPTION [GNUPG:] PLAINTEXT 62 0 [GNUPG:] PLAINTEXT_LENGTH 1442 [GNUPG:] ERRSIG F5957B2400A75D95 17 2 00 1314714934 9 [GNUPG:] NO_PUBKEY F5957B2400A75D95 [GNUPG:] DECRYPTION_OKAY [GNUPG:] GOODMDC [GNUPG:] END_DECRYPTION

The multiple occurrences of NO_SECKEY throw libmacgpg off and the operation
ends with an exception GPGErrorNoSecretKey.

It would make sense to reset the errors if DECRYPTION_OKAY is found.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Shared Ticket Bins