Page MenuHome GnuPG

gpg: [don't know]: invalid packet (ctb=2d0
Closed, ResolvedPublic

Details

Version
1.4.9

Event Timeline

We are attempting to decrypt a file and receive the following. The file does
decrypt but also returns an invalid packet error and throws an error 2.

Is this a bug?

C:\ASPCORE\temp>gpg -d --pgp2 -o jt.out
20090116103728-183529049-017740544-6382015.x12.v1.6.6382015.DT12453681

You need a passphrase to unlock the secret key for
user: "xxxxx <xxx@xxx.com>"
2048-bit ELG-E key, ID 98D2EAD9, created 2008-01-16 (main key ID 81A805D8)

gpg: encrypted with 2048-bit ELG-E key, ID F0112E73, created 2004-02-17

"xxxxxx"

gpg: encrypted with 2048-bit ELG-E key, ID DE55F604, created 2004-08-11

"yyyyyy"

gpg: encrypted with 2048-bit ELG-E key, ID 98D2EAD9, created 2008-01-16

"zzzzzzz <zzzz@zzzzz.com>"

gpg: Signature made 01/16/09 10:37:27 using RSA key ID 084D7891
gpg: Good signature from "wwww <wwwwww@wwwwwww.com>"
gpg: WARNING: message was not integrity protected
gpg: [don't know]: invalid packet (ctb=2d)

C:\ASPCORE\temp>echo %ERRORLEVEL%
2

werner added a subscriber: werner.

There is some garbage at the end of the file. I can't tell you more without
seeing the encrypted file. ctb=2dmeans that a '-' has been detected. A possible
reason for this is a broken MIME parser.

I searched for '-'s and they are only on the BEGIN and END message lines. The
encrypted file is over 350K, this is the tail of the file:

ECytsxMC5B2wRLrsmtBCkynYtCtCqW/9o8Ve/K6uuJLi2mr55Qu+n0zQBzi/VDLX
30iCF7SuWTRUtw6QFARTpSCJbSm5QiXXJe8AavgJJBxFC1z6Obt67H20Rf1cSihn
m3IcIMuyIAGmIcstRqaCDTCID2st3l9aJ8iH/TV8Oua142X3Bw1w+gw9Sm8RfdL3
g7FvfmPSONcn3BW/S/zGVuz1NERpJ1CAuQVNx2FT9JgSjDvq0YGPaxV+B3kkhMbB

/tQH

-----END PGP MESSAGE-----

Thanks

You want see those '-' because gpg detects them after removing the ascii armor
(base 64 encoding). The ----END line is part of the ascii armor and thus not
relevant for gpg. You may strip the ascii armor yourself by using "gpg --dearmor".

neal claimed this task.

This support request appears to be resolved. Closing.