Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addition of AEAD Encrypted Data Packet (Tag 20) #497

Open
jamiepetergaunt opened this issue Oct 26, 2023 · 2 comments
Open

Addition of AEAD Encrypted Data Packet (Tag 20) #497

jamiepetergaunt opened this issue Oct 26, 2023 · 2 comments
Assignees

Comments

@jamiepetergaunt
Copy link

Org.BouncyCastle.Bcpg.PacketTag needs the new 20 tag for AEAD.

@magnusakselvoll
Copy link

magnusakselvoll commented Nov 27, 2023

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.

@BaptX-dev
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants