bc-csharp icon indicating copy to clipboard operation
bc-csharp copied to clipboard

[BUG] OpenPGP Kleopatra keys cannot be worked with.

Open kikaragyozov opened this issue 6 months ago • 1 comments

Describe the Bug

Kleopatra generates OpenPGP keys with the unofficial AEAD Encrypted Data packet (type 20). BouncyCastle fails to recognize this key packet and throws an exception whenever such key is encountered.

An issue to this exists but has been ignored for years: https://github.com/bcgit/bc-csharp/issues/497

This has also been reported to StackOverflow since 2022 and has not yet been fixed.

Developers using Java do not face this issue as noted in the StackOverflow post, though I've not verified this.

kikaragyozov avatar Jun 06 '25 08:06 kikaragyozov

Any news on this? It seems that the java version of the library incorporated a fix for this (in ver 1.72).

I know there is a workaround to remove AEAD support from the key but it is a pain because now I have to redistribute the public key and update the configuration of our app.

Thank you

boggye avatar Sep 03 '25 20:09 boggye