Hi NIIBE Thank you very much for the help.
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. Here is a whole debug session: ---------------------------------------------------- gpg -v --debug-all --no-use-agent j.gpg gpg: NOTE: no default option file `/home/jason/.gnupg/gpg.conf' gpg: DBG: fd_cache_open (j.gpg) not cached gpg: DBG: iobuf-1.0: open `j.gpg' fd=3 gpg: DBG: iobuf-1.0: underflow: req=8192 gpg: DBG: iobuf-1.0: underflow: got=6705 rc=0 gpg: DBG: parse_packet(iob=1): type=3 length=13 (parse.mainproc.c.1261) gpg: CAST5 encrypted data :======================ASK passphrase here gpg: DBG: free_packet() type=3 gpg: DBG: iobuf-1.1: push `block_filter' gpg: DBG: iobuf chain: 1.1 `block_filter' filter_eof=0 start=0 len=0 gpg: DBG: iobuf chain: 1.0 `file_filter(fd)' filter_eof=0 start=17 len=6705 gpg: DBG: init block_filter 0x8a398d0 gpg: DBG: parse_packet(iob=1): type=9 length=0 (new_ctb) (parse.mainproc.c.1261) gpg: encrypted with 1 passphrase gpg: DBG: iobuf-1.1: underflow: req=8192 gpg: DBG: iobuf-1.1: underflow: got=6685 rc=0 gpg: decryption failed: bad key gpg: DBG: free_packet() type=9 gpg: DBG: iobuf-1.1: underflow: req=8192 gpg: DBG: iobuf-1.1: underflow: got=0 rc=-1 gpg: DBG: free block_filter 0x8a398d0 gpg: DBG: iobuf-1.1: pop in underflow (!len) gpg: DBG: iobuf chain: 1.0 `file_filter(fd)' filter_eof=0 start=6705 len=6705 gpg: DBG: iobuf-1.0: underflow: eof gpg: DBG: iobuf-1.0: underflow: req=8192 gpg: DBG: iobuf-1.0: underflow: got=0 rc=-1 gpg: DBG: j.gpg: close fd 3 gpg: DBG: fd_cache_close (j.gpg) new slot created gpg: DBG: iobuf-1.0: underflow: eof gpg: DBG: iobuf-1.0: underflow: eof (due to filter eof) gpg: DBG: iobuf-1.0: close `?' random usage: poolsize=600 mixed=0 polls=0/2 added=10/176 outmix=0 getlvl1=0/0 getlvl2=0/0 secmem usage: 1472/2240 bytes in 3/6 blocks of pool 2240/32768 [jason@f15 ~]$ echo $GPG_AGENT_INFO ================EMPTY GPG_AGENT_INFO. To avoid possible issue from genome, I login in as ssh. my gpg version is 1.4.19 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? thanks On Mon, Apr 13, 2015 at 6:06 PM, NIIBE Yutaka <gni...@fsij.org> wrote: > On 04/14/2015 07:27 AM, jason zhang wrote: > > Any clue? Where should I start to investigate? > > > > I checked another encrypted file. I cloud not decrypt it, either. > > But I can encrypt /decrypt new file successfully. > > Please let us know your configuration. I think that it's > ~/.gnupg/gpg.conf on Fedora. > > > Today, I could not decrypt it suddenly. > > Here is what a decrypt session looks like > > ------------------------------------------ > > /usr/local/bin/gpg j.gpg > > gpg: CAST5 encrypted data > > gpg: encrypted with 1 passphrase > > gpg: decryption failed: bad key > > ------------------------------------------ > > Please include the version output of gpg --version in your report. > > Is it complete session log of yours? I mean, GnuPG should ask you > passphrase here. > > Possible case: If you enable gpg-agent by the configuration of > use-agent, passphrase handling (and others) is done by gpg-agent. And > when your gpg-agent doesn't work and returns "", and it is failed and > caused "bad key" error. If so, please try with --no-use-agent. To > investigate what's going on with gpg-agent, please also let us know > the output of: > > $ echo $GPG_AGENT_INFO > > Thanks, > -- > > _______________________________________________ > Gnupg-users mailing list > Gnupg-users@gnupg.org > http://lists.gnupg.org/mailman/listinfo/gnupg-users > -- -jiesheng
_______________________________________________ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users