[pkg-gnupg-maint] Bug#846953: gpg2 fails to decrypt with "No secret key" but gpg1 succeeds

Ryan Kavanagh rak at debian.org
Sun Dec 4 15:52:12 UTC 2016


Package: gnupg
Version: 2.1.16-2
Severity: important

I'm unable to decrypt messages with gpg2, but can decrypt them with gpg1. See
below for details. Please let me know if I can provide any further debugging
information.

Best wishes,
Ryan

rak at zeta:~$ echo $GPGKEY
4A11C97A
rak at zeta:~$ echo "ABC" | gpg -r$GPGKEY --encrypt | gpg --debug 8 --decrypt
gpg: reading options from '/home/rak/.gnupg/gpg.conf'
gpg: enabled debug flags: filter
gpg: encrypted with 10240-bit RSA key, ID 20E0235B0F5E9C64, created 2009-09-24
      "Ryan Kavanagh <rak at debian.org>"
gpg: public key decryption failed: Inappropriate ioctl for device
gpg: decryption failed: No secret key
gpg: secmem usage: 0/65536 bytes in 0 blocks
rak at zeta:~$ echo "ABC" | gpg -r$GPGKEY --encrypt | gpg1 --debug 8 --decrypt
gpg: reading options from `/home/rak/.gnupg/gpg.conf'

You need a passphrase to unlock the secret key for
user: "Ryan Kavanagh <rak at debian.org>"
10240-bit RSA key, ID 0F5E9C64, created 2009-09-24 (main key ID 4A11C97A)

gpg: problem with the agent - disabling agent use
gpg: encrypted with 10240-bit RSA key, ID 0F5E9C64, created 2009-09-24
      "Ryan Kavanagh <rak at debian.org>"
gpg: DBG: begin inflate: avail_in=0, avail_out=8192, inbuf=2048
gpg: DBG: enter inflate: avail_in=20, avail_out=8192
gpg: DBG: leave inflate: avail_in=0, avail_out=8180, zrc=1
gpg: DBG: do_uncompress: returning 12 bytes
ABC
secmem usage: 1600/35360 bytes in 3/35 blocks of pool 36832/65536
rak at zeta:~$ gpg --version
gpg (GnuPG) 2.1.16
libgcrypt 1.7.3-beta
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Home: /home/rak/.gnupg
Supported algorithms:
Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
        CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2
rak at zeta:~$ gpg1 --version
gpg (GnuPG) 1.4.21
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Home: ~/.gnupg
Supported algorithms:
Pubkey: RSA, RSA-E, RSA-S, ELG-E, DSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
        CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2
rak at zeta:~$

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.8.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_CA.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages gnupg depends on:
ii  gnupg-agent    2.1.16-2
ii  libassuan0     2.4.3-2
ii  libbz2-1.0     1.0.6-8
ii  libc6          2.24-7
ii  libgcrypt20    1.7.3-2
ii  libgpg-error0  1.25-1
ii  libksba8       1.3.5-2
ii  libreadline7   7.0-1
ii  libsqlite3-0   3.15.2-1
ii  zlib1g         1:1.2.8.dfsg-2+b3

Versions of packages gnupg recommends:
ii  dirmngr     2.1.16-2
pn  gnupg-l10n  <none>

Versions of packages gnupg suggests:
pn  parcimonie  <none>
pn  xloadimage  <none>

-- no debconf information

-- 
|_)|_/  Ryan Kavanagh      | GPG: 4E46 9519 ED67 7734 268F
| \| \  https://ryanak.ca/ |      BD95 8F7B F8FC 4A11 C97A
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1873 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-gnupg-maint/attachments/20161204/83745f73/attachment.sig>


More information about the pkg-gnupg-maint mailing list