Open jamiepetergaunt opened 11 months ago
Generating a new default key with Gpg and encrypting a file, produces a PGP file that crashes with PgpCore (due to it's dependency on BouncyCastle.Cryptography). The message is:
System.Private.CoreLib: Exception while executing function: DecryptPgpBlob. BouncyCastle.Cryptography: unknown packet type encountered: 20.
I suspect this comes from the method ReadPacket in BcpgInputStream, but I am hesitant to make a PR to this library myself, since I am not familiar with it's workings.
Let me know, if I can assist in any way in getting this implemented.
Maybe there is a "special" way to decrypt and verify data when AEAD is present. By PgpCore, you can check how the decrypt method is here : https://github.com/mattosaurus/PgpCore/blob/master/PgpCore/PGP.DecryptAsync.cs (from 198)
But it is weird because if I check the last release notes : AEAD is managed.
I updated the PgpCore ticket too.
Are there any solutions available for this issue? I'm encountering the same error
Getting this same error. Doesn't look like bouncy castle has a solution for files encrypted with AEAD keys.
Org.BouncyCastle.Bcpg.PacketTag needs the new 20 tag for AEAD.