-
Notifications
You must be signed in to change notification settings - Fork 58
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
Some files cannot be decrypted with error "premature end of stream in PartialInputStream" #46
Comments
Oh, I have more info. I've traced the code using both files. The difference is that my Not sure I understand all of it so far, but it seems that having no signature list packets break it. Not sure how to create a file to isolate this either. Hope this helps! |
I also encountered this issue. Like @jni-, I experienced it with one particular file, but not with others. The file I saw it for was a fairly small (12K) encrypted and signed CSV file. Both the encrypted file and the signer's public key were created using a very old PGP toolkit (v2 I think), which might be relevant. The files that worked were encrypted and signed by me using BouncyGPG. |
…to ispringer-issue-46 * 'issue-46' of https://github.com/ispringer/bouncy-gpg: fixes #46 by reverting 012c3f9; that commit did not make sense, as we should not close a stream that is going to be wrapped by additional streams, which haven't even been created yet; instead the wrapping streams should be responsible for closing the streams they wrap once they are fully done with them; all tests pass
* ispringer-issue-46: fixes #46 by reverting 012c3f9; that commit did not make sense, as we should not close a stream that is going to be wrapped by additional streams, which haven't even been created yet; instead the wrapping streams should be responsible for closing the streams they wrap once they are fully done with them; all tests pass
Describe the bug
An error occurs when decrypting some files. It seems caused by a stream closed too early (see additional information)
To Reproduce
Expected behavior
File gets decrypted
** System (please complete the following information):**
Additional context
Stacktrace :
I've isolated the breaking commit : 012c3f9 (reverting to 2.1.2 works)
It seems the stream closes too soon, but I have no idea why it works with some files and not with some others.
It works well with a file I encrypted myself. However, it does not work with the file the provider creates. I have no idea why. I also have no idea how they encrypt it to be honest. I cannot share the file for privacy reasons, however if some info on it can help, let me know.
I'm sorry I can't provide more information! Let me know how I can help more
The text was updated successfully, but these errors were encountered: