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

System.IO.IOException: unknown packet type encountered: 20 #41

Open
MacMuffin opened this issue Jul 21, 2022 · 0 comments
Open

System.IO.IOException: unknown packet type encountered: 20 #41

MacMuffin opened this issue Jul 21, 2022 · 0 comments

Comments

@MacMuffin
Copy link

MacMuffin commented Jul 21, 2022

Hey,

first of all i want to thank you for this great package! I like how easy it is for using, thanks for that!

I have one question. We have suddenly, without changing or updating the application or something, encountered the following error:

System.IO.IOException: unknown packet type encountered: 20
   at Org.BouncyCastle.Bcpg.BcpgInputStream.ReadPacket()
   at Org.BouncyCastle.Bcpg.OpenPgp.PgpEncryptedDataList..ctor(BcpgInputStream bcpgInput)
   at Org.BouncyCastle.Bcpg.OpenPgp.PgpObjectFactory.NextPgpObject()
   at Cinchoo.PGP.ChoPGPEncryptDecrypt.Decrypt(Stream inputStream, Stream outputStream, Stream privateKeyStream, String passPhrase)
   at Cinchoo.PGP.ChoPGPEncryptDecrypt.Decrypt(Stream inputStream, Stream outputStream, String privateKeyFilePath, String passPhrase)

It happens one week ago without any changes, so i asking myself, what could cause the issue? We tried some things to check, key is still valid, because we can decrypt the encrypted file with the gpg command in Windows PowerShell.

We tried also to change the key, but same thing happens, also if you provide an invalid key.

Any Idea what could happen here?

Thats the call were the Issue happens:
using (var pgp = new ChoPGPEncryptDecrypt()) { pgp.Decrypt(memInput, memOutput, _appSettings.ImportSettings.DecryptPrivateKeyPath, ""); }

on pgp.Decrypt

Thank you in advance!

BR

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

1 participant