premature end of stream in PartialInputStream
The error “premature end of stream in PartialInputStream” may be observed when trying to decrypt .pgp data with wrong internal length indicators , usually when the encrypted content is text data. Example of such data can be found at http://bouncy-castle.1462172.n4.nabble.com/potential-bug-premature-end-of-stream-exception-in-pgp-message-td4302017.html
In order to avoid this error, please make sure that you are using the latest version of the libraries.
The DidiSoft Team.