GPG/GPGME problem

harry_b at mm.st harry_b at mm.st
Fri Aug 5 19:07:54 CEST 2005


Hi there,

I am pretty confused about a problem with gpg and gpgme. I am working on
an encryption program and for this I wrote some test sequences which now
give me a hard time. Every 1000 runs or so, the following steps produce
a  weird error which even gpg itself messes up. :-/

I am on Debian unstable and use GPG 1.4.1 and gpgme 1.0.2.

My test runs these steps:
   1. Create some random XML data file
   2. gzip this file (as my application does using zlib)
      $ gzip -9 FILE_A
   3. encode it with a testkey
      $  echo "1234567890" | GNUPGHOME=./tests GPG_AGENT_INFO= gpg
      --no-tty --recipient="TESTKEY" --passphrase-fd 0 --armour --sign
      --encrypt --output="FILE_B" "FILE_A"
   4. run my application and see if it can decrypt the file and write
      the same data again
   5. compare the gpg file with my own file

The problem now is, that even gpg can't decrypt it's own file FILE_B. I
tried this with several keys and it happens with all of my keys. :-(

I get these two errors:
   - gpg reports:  gpg: [don't know]: invalid packet (ctb=14)
   - gpgme reports: Unexpected signature summary: 0x800

The weird thing is, that it seems to depend on the data which I create
pretty randomly with a little perl script.

Any ideas what I can do about this very weird thing?

Harry

PS: Some of these buggy files are in the attached tar.gz file.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: buggy-files.tar.gz
Type: application/x-gzip
Size: 149333 bytes
Desc: not available
Url : /pipermail/attachments/20050805/c00bbff8/buggy-files.tar-0001.bin


More information about the Gnupg-devel mailing list