EldoS | Feel safer!

Software components for data protection, secure storage and transfer

DecryptAndVerify Empty File Error

Also by EldoS: CallbackFilter
A component to monitor and control disk activity, track file and directory operations (create, read, write, rename etc.), alter file data, encrypt files, create virtual files.
Posted: 11/26/2013 10:17:18
by Brandon Stalte (Standard support level)
Joined: 09/26/2011
Posts: 1


I am having a problem attempting to decrypt a file that is empty and has no content. The empty file is signed and encrypted but upon calling DecryptAndVerify or DecryptAndVerifyFile it always results in an exception:

"Unexpected end of data"
at SBPGP.TElPGPReader.Synchronize()
at SBPGP.TElPGPReader.DecryptAndVerify(Stream ASourceStream, Int64 Count)

I am setting the OutputFile property and see the file written to my temporary folder with 0 bytes which is good but it still errors out instead of completing the process and writing the empty file to my destination folder.

I cannot decrypt these empty files with PGPDesktop as well but GPG is able to decrypt the data and displays:

gpg[10000] can't handle this ambiguous signature data
gpg[10000] decryption okay

So GPG is able to decrypt and create the empty resulting file but does warn that it had problems with the signature data.

Is there a way for me to either handle this empty file during decryption to allow it to successfully decrypt? Possibly overriding the verify procedure might enable me to get past this exception if there is a way to to that?

Right now these files are being handled with other production files and it is hard to see if these are real problems or just empty file exceptions. An example is:

Version: PGPsdk version 1.7.1 © 1997-1999 Network Associates, Inc. and its affiliated companies.


Posted: 11/26/2013 10:39:40
by Eugene Mayevski (Team)

Thank you for the report. Moved to helpdesk for investigation.

Sincerely yours
Eugene Mayevski



Topic viewed 1169 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS business operates as a division of /n software, inc. For more information, please read the announcement.

Got it!