can not decrypt file suddenly

NIIBE Yutaka gniibe at
Tue Apr 14 06:41:23 CEST 2015

On 04/14/2015 12:07 PM, jason zhang wrote:
> Yes, it asked me the passphrase just after "gpg: CAST5 encrypted data"
> line, and I gave the passphrase. The passphrase is definitely right since I
> used it very 2 or 3 days.

I see.

> Here is a whole debug session:

Thank you for the log.

> gpg: DBG: parse_packet(iob=1): type=9 length=0 (new_ctb)

Here, it seems for me that your file (j.pgp) is malformed.
Type=9 is the encrypted data packet, but its length is 0.

Since OpenPGP format for the encrypted data packet begins with a
block-size of random bytes.  So, length 0 should not be happened.

I think that this is the cause of your trouble.

Note that the length of the encrypted data packet is data before
decryption, passphrase doesn't matter here.

> Can I move the encrypted file to another machine? Since I use symmetric
> encryption, it should not depend on the machine it is on. Right?


More information about the Gnupg-users mailing list