-
Notifications
You must be signed in to change notification settings - Fork 99
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
Unknown packet type encountered: 20 #219
Comments
Hi, If this is the same as the previous issue then I don't think there's anything that can be done until AEAD decryption is supported in Bouncy Castle. If you're able to send me some demo keys and code that allow me to replicate the issue then I'll take a look and see if I can figure out any more details. |
Hi, Thank you so much for the speedy response. Unfortunately, I do not have the allowance to create a demo key and the code is this:
So if Bouncy Castle is not an option, is there any encryption library that supports AEAD decryption? |
Creating a new key with gpg (GnuPG) 2.4.3 (tested on Mac) will create a key that supports AEAD and thus reproduces this issue. The only workaround I have found is this. I believe that this is related to this issue in Bouncy Castle. If it is easier for you @FaezSubmarine, I have created a throwaway private key that demonstrates this issue. This key was generated using
Password: P@assW0rd As shown using
|
Hi guys, I confirm the problem do not appear if we use PgpCore for encrypt / sign & decrypt / verify with keys which support AEAD (as Kleopatra create by default : ECDSA / EdDSA (ed25519) + ECDH (cv25519) The problem appears if you use Kleopatra to encrypt and sign a message (via its Notepad) and use PgpCore to decrypt / verify the data. The opposite is valid : encrypt with PgpCore and decrypt with Kleopatra works. But it is weird because if I check the last Bouncy Castle C# release notes : AEAD is managed. I updated the Bouncy Castle ticket too. |
@BaptX-dev -- I'm also same issue. If I encrypt using Kleopatra Notepad, PGPCore is giving decryption error. I'm using RSA 4096 and no signing. Did you managed to change any code to make both Kleopatra and Bouncy Castle C# compatible with each other. Appreciate any response on this. |
Any news @mattosaurus ? |
Hi @BaptX-dev, this is still awaiting an update to BouncyCastle to to handle decrypting of AEAD encrypted files so no progress yet unfortunately. |
@BaptX-dev - We have disabled AEAD block in the keys and able to get both Kleopatra and PGPCore work hand in hand. Cheers! |
Hi, I know that there's a closed issue with the same name as this one but I still got this error when I was trying to decrypt a .zip.pgp file. Note that I cannot modify how a key is generated as it is provided by a third party. How would I work around this issue?
The text was updated successfully, but these errors were encountered: