Windows gpg (GnuPG) 2.2.4 decryption - could you help with inputs

arinit's Avatar

arinit

10 May, 2018 10:15 AM

Which of our tools is giving you problems?

gpg (GnuPG) 2.2.4 libgcrypt 1.8.2 decryption

Attach a screenshot of the version info for all installed components (how to: https://gpgtools.tenderapp.com/kb/faq/where-can-i-find-version-info...):

Describe your problem. Add as much detail as possible.

The return code is empty for decryption

gpg --debug-all -vvv --batch --pinentry-mode loopback --passphrase-file -o --yes --decrypt

the output decrypted file has got generated ,
however the return code from GPG command is empty and the scheduler which schedules the job hangs and did not exit.

please find the debug traces end parts -
gpg: DBG: fd_cache_close (C:/Users/xxxxxxx/AppData/Roaming/gnupg/pubring.kbx) used existing slot
gpg: DBG: free_packet() type=6
gpg: DBG: free_packet() type=13
gpg: DBG: free_packet() type=2
gpg: DBG: free_packet() type=14
gpg: DBG: free_packet() type=2
gpg: encrypted with 2048-bit RSA key, ID xxxxxxxxxxxxxxxx, created 2018-05-07

gpg: AES256 encrypted data
gpg: DBG: iobuf-1.1: push 'mdc_decode_filter'
gpg: DBG: iobuf chain: 1.1 'mdc_decode_filter' filter_eof=0 start=0 len=0
gpg: DBG: iobuf chain: 1.0 'file_filter(fd)' filter_eof=0 start=293 len=538
gpg: DBG: iobuf-1.1: underflow: buffer size: 8192; still buffered: 0 => space for 8192 bytes
gpg: DBG: iobuf-1.1: underflow: A->FILTER (8192 bytes)
gpg: DBG: iobuf-1.1: A->FILTER() returned rc=0 (ok), read 223 bytes
gpg: DBG: parse_packet(iob=1): type=8 length=0 (parse./home/wk/b-w32/speedo/PLAY-release/gnupg-w32-2.2.4/g10/mainproc.c.1373)

off=293 ctb=a3 tag=8 hlen=1 plen=0 indeterminate

:compressed packet: algo=2 gpg: DBG: iobuf-1.2: push 'compress_filter'
gpg: DBG: iobuf chain: 1.2 'compress_filter' filter_eof=0 start=0 len=0
gpg: DBG: iobuf chain: 1.1 'mdc_decode_filter' filter_eof=0 start=2 len=223
gpg: DBG: iobuf chain: 1.0 'file_filter(fd)' filter_eof=0 start=538 len=538
gpg: DBG: iobuf-1.2: underflow: buffer size: 8192; still buffered: 0 => space for 8192 bytes
gpg: DBG: iobuf-1.2: underflow: A->FILTER (8192 bytes)
gpg: DBG: begin inflate: avail_in=0, avail_out=8192, inbuf=2048
gpg: DBG: iobuf-1.1: underflow: buffer size: 8192; still buffered: 0 => space for 8192 bytes
gpg: DBG: iobuf-1.1: underflow: A->FILTER (8192 bytes)
gpg: DBG: iobuf-1.1: A->FILTER() returned rc=-1 (EOF), read 0 bytes
gpg: DBG: iobuf-1.1: pop in underflow (nothing buffered, got EOF)
gpg: DBG: iobuf chain: 1.0 'file_filter(fd)' filter_eof=0 start=538 len=538
gpg: DBG: enter inflate: avail_in=221, avail_out=8192
gpg: DBG: leave inflate: avail_in=0, avail_out=7898, zrc=1
gpg: DBG: do_uncompress: returning 294 bytes (0 ignored)
gpg: DBG: iobuf-1.2: A->FILTER() returned rc=-1 (EOF), read 294 bytes
gpg: DBG: parse_packet(iob=1): type=11 length=291 (parse./home/wk/b-w32/speedo/PLAY-release/gnupg-w32-2.2.4/g10/mainproc.c.1373)

off=295 ctb=ad tag=11 hlen=3 plen=291

:literal data packet: mode b (62), created 1525756348, name="testfile.txt", raw data: 273 bytes

gpg: original file name='testfile.txt'
gpg: DBG: free_packet() type=11
gpg: DBG: iobuf-1.2: underflow: buffer size: 8192; still buffered: 0 => space for 8192 bytes
gpg: DBG: iobuf-1.2: underflow: eof (pending eof)
gpg: DBG: iobuf-1.2: filter popped (pending EOF returned)
gpg: DBG: iobuf chain: 1.0 'file_filter(fd)' filter_eof=0 start=538 len=538
gpg: DBG: free_packet() type=63
gpg: DBG: free_packet() type=8
gpg: DBG: iobuf-1.0: underflow: buffer size: 8192; still buffered: 0 => space for 8192 bytes
gpg: DBG: iobuf-1.0: underflow: A->FILTER (8192 bytes)
gpg: DBG: iobuf-1.0: A->FILTER() returned rc=0 (ok), read 0 bytes
gpg: decryption okay
gpg: DBG: free_packet() type=18
gpg: DBG: iobuf-1.0: underflow: buffer size: 8192; still buffered: 0 => space for 8192 bytes
gpg: DBG: iobuf-1.0: underflow: A->FILTER (8192 bytes)
gpg: DBG: iobuf-1.0: A->FILTER() returned rc=0 (ok), read 0 bytes
gpg: DBG: iobuf-1.0: close 'file_filter(fd)'
gpg: DBG: [not enabled in the source] stop
gpg: keydb: handles=4 locks=0 parse=0 get=4
gpg: build=0 update=0 insert=0 delete=0
gpg: reset=0 found=4 not=0 cache=0 not=0
gpg: kid_not_found_cache: count=0 peak=0 flushes=0
gpg: sig_cache: total=6 cached=6 good=6 bad=0
gpg: random usage: poolsize=600 mixed=0 polls=0/0 added=0/0
outmix=0 getlvl1=0/0 getlvl2=0/0 gpg: rndjent stat: collector=0x00000000 calls=0 bytes=0
gpg: secmem usage: 224/32768 bytes in 1 blocks <--- this is end of gpg debug trace

What did you expect instead As mentioned in the documentation the codes can be specific (0 1 , 2 ,...) that in case of any error in keys or any other issues

Describe steps leading to the problem. normal decryption

Are you using any other Mail.app plugins?

  1. 1 Posted by arinit on 10 May, 2018 11:36 AM

    arinit 's Avatar

    in addition I have got the below status-fd after generation of the decrypted file
    Could you help out it is a normal flow?
    is the general error mentioned a normal one?

    [GNUPG:] ENC_TO XXXXXXX 1 0 [GNUPG:] KEY_CONSIDERED XXXXXXXYYYYYXXXXXXX 0 [GNUPG:] KEY_CONSIDERED XXXXXXXYYYYYXXXXXXXttttttt 0 [GNUPG:] DECRYPTION_KEY XXXXXXXXXXXXXXXXX u [GNUPG:] KEY_CONSIDERED ABCDRJHJKJJJJJJJJJJJJJJJJJJ 0 gpg: encrypted with 2048-bit RSA key, ID XXXXXXXXXXXX, created 2018-05-07
    "USERXXXXXXXX [email blocked]" [GNUPG:] BEGIN_DECRYPTION [GNUPG:] DECRYPTION_COMPLIANCE_MODE 23 [GNUPG:] DECRYPTION_INFO 2 9 [GNUPG:] PLAINTEXT 62 1525885776 testfile.txt [GNUPG:] PLAINTEXT_LENGTH 273 gpg: handle plaintext failed: General error <**********************>
    [GNUPG:] DECRYPTION_OKAY [GNUPG:] GOODMDC [GNUPG:] END_DECRYPTION

  2. Support Staff 2 Posted by Steve on 10 May, 2018 12:58 PM

    Steve's Avatar

    Hi arinit,

    unfortunately at the moment it is not possible for us to answer general questions about GnuPG.

    The GnuPG developers are running a user mailing list where they or someone else will probably be able to help you.

    All the best,
    steve

  3. Steve closed this discussion on 27 Aug, 2018 09:08 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac