Hello!
I faced such an issue as "EndOdStreamException: Premature end of stream in PartialInputStream" with some pgp files that should be decrypted as ZIP archive.
Could you please advise what can be is the reason?
I had the following exception StackTrace:
System.IO.EndOfStreamException: Premature end of stream in PartialInputStream at Org.BouncyCastle.Bcpg.BcpgInputStream.PartialInputStream.Read(Byte[] buffer, Int32 offset, Int32 count) at Org.BouncyCastle.Bcpg.BcpgInputStream.Read(Byte[] buffer, Int32 offset, Int32 count) at Org.BouncyCastle.Crypto.IO.CipherStream.ReadAndProcessBlock() at Org.BouncyCastle.Crypto.IO.CipherStream.FillInBuf() at Org.BouncyCastle.Crypto.IO.CipherStream.Read(Byte[] buffer, Int32 offset, Int32 count) at Org.BouncyCastle.Bcpg.BcpgInputStream.Read(Byte[] buffer, Int32 offset, Int32 count) at Org.BouncyCastle.Utilities.Zlib.ZInputStream.Read(Byte[] b, Int32 off, Int32 len) at Org.BouncyCastle.Bcpg.BcpgInputStream.Read(Byte[] buffer, Int32 offset, Int32 count) at Org.BouncyCastle.Bcpg.BcpgInputStream.PartialInputStream.Read(Byte[] buffer, Int32 offset, Int32 count) at Org.BouncyCastle.Bcpg.BcpgInputStream.Read(Byte[] buffer, Int32 offset, Int32 count) at Org.BouncyCastle.Utilities.IO.Streams.PipeAll(Stream inStr, Stream outStr) at Cinchoo.PGP.ChoPGPEncryptDecrypt.Decrypt(Stream inputStream, Stream outputStream, Stream privateKeyStream, String passPhrase) at Cinchoo.PGP.ChoPGPEncryptDecrypt.DecryptFile(String inputFilePath, String outputFilePath, String privateKeyFilePath, String passPhrase)
Hello!
I faced such an issue as "EndOdStreamException: Premature end of stream in PartialInputStream" with some pgp files that should be decrypted as ZIP archive.
Could you please advise what can be is the reason?
I had the following exception StackTrace:
System.IO.EndOfStreamException: Premature end of stream in PartialInputStream at Org.BouncyCastle.Bcpg.BcpgInputStream.PartialInputStream.Read(Byte[] buffer, Int32 offset, Int32 count) at Org.BouncyCastle.Bcpg.BcpgInputStream.Read(Byte[] buffer, Int32 offset, Int32 count) at Org.BouncyCastle.Crypto.IO.CipherStream.ReadAndProcessBlock() at Org.BouncyCastle.Crypto.IO.CipherStream.FillInBuf() at Org.BouncyCastle.Crypto.IO.CipherStream.Read(Byte[] buffer, Int32 offset, Int32 count) at Org.BouncyCastle.Bcpg.BcpgInputStream.Read(Byte[] buffer, Int32 offset, Int32 count) at Org.BouncyCastle.Utilities.Zlib.ZInputStream.Read(Byte[] b, Int32 off, Int32 len) at Org.BouncyCastle.Bcpg.BcpgInputStream.Read(Byte[] buffer, Int32 offset, Int32 count) at Org.BouncyCastle.Bcpg.BcpgInputStream.PartialInputStream.Read(Byte[] buffer, Int32 offset, Int32 count) at Org.BouncyCastle.Bcpg.BcpgInputStream.Read(Byte[] buffer, Int32 offset, Int32 count) at Org.BouncyCastle.Utilities.IO.Streams.PipeAll(Stream inStr, Stream outStr) at Cinchoo.PGP.ChoPGPEncryptDecrypt.Decrypt(Stream inputStream, Stream outputStream, Stream privateKeyStream, String passPhrase) at Cinchoo.PGP.ChoPGPEncryptDecrypt.DecryptFile(String inputFilePath, String outputFilePath, String privateKeyFilePath, String passPhrase)