pgpainless: Catch KEY MISMATCH exception
Let’s imagine that we have the following case:
- create an encrypted text for key
Aand keyB. - we have key
C - we try to decrypt the encrypted text with key
C - after 3. we will receive the following exception
org.bouncycastle.openpgp.PGPException: Decryption failed - No suitable decryption key or passphrase foundthat relates to the following code
- On the user side it can mean that the user uses the wrong key for decryption (didn’t import the right key)
it would be great to have for example KeyMismatchException that cover the following

@vanitasvitae What do you think about that?
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 15 (15 by maintainers)
got it. in that case, for our sense, the callback here would not be used, since we always provide all keys anyway
On Saturday, May 29, 2021, Paul Schaub @.***> wrote:
–
Tom James Holub http://holub.me/