Page MenuHome GnuPG
Feed Advanced Search

Aug 28 2015

aheinecke closed T2031: GnuPG 2.1 Migration fails badly with (weird) PGP2 key in pubring as Resolved.
Aug 28 2015, 11:08 PM · Bug Report, gnupg, gnupg (gpg21)
werner added a comment to T1845: sending large keys to keyserver push fails with silent hang and "assuan_inquire failed: Too much data for IPC layer".

The limit set by dirmngr is in general useful. Shall we make the limit
configurable at runtime?

Aug 28 2015, 10:35 AM · gnupg, gnupg (gpg21), Debian, Bug Report
werner added a comment to T1845: sending large keys to keyserver push fails with silent hang and "assuan_inquire failed: Too much data for IPC layer".

Oh well, the hang is indeed a libassuan bug. The assuan_inquire fucntion
stopped reading as soon as a supplied limit was reached and returned to the
caller. The caller (dirmngr), printed an error and sends back an ERR line.
Hwoever, the client kept on sending the remaining lines and thus messed uo the
protocol.

Just fixed it in libassuan (5a52404) by reading up the extra lines before
returing from assuan_inquire.

Aug 28 2015, 10:33 AM · gnupg, gnupg (gpg21), Debian, Bug Report

Aug 27 2015

fleblanc closed T2065: Error when generating keys in a headless environement as Resolved.
Aug 27 2015, 6:10 PM · Bug Report, Arch, pinentry, gnupg (gpg21)
fleblanc added a comment to T2065: Error when generating keys in a headless environement.

Hi Neal, you are right about the entropy. I tought it was gpg but I think it's
because my system is too minimal to produce enough entropy. I finally decided to
generate my keys in another machine and transfer them to my minimal
installation. Now it works perfectly, with pinentry 0.9.5.

Thanks for your help,

Regards,

Felix

Aug 27 2015, 6:09 PM · Bug Report, Arch, pinentry, gnupg (gpg21)
werner added a comment to T1796: Secret key import fails for ASCII version on windows.

Can you still replicate this with gnupg-w32-2.1.7 ?

Aug 27 2015, 3:45 PM · gpa, Windows 32, gnupg (gpg21), Windows, Bug Report
werner claimed T1845: sending large keys to keyserver push fails with silent hang and "assuan_inquire failed: Too much data for IPC layer".
Aug 27 2015, 3:35 PM · gnupg, gnupg (gpg21), Debian, Bug Report
werner changed Version from 2.2.0 to 2.1 on T1845: sending large keys to keyserver push fails with silent hang and "assuan_inquire failed: Too much data for IPC layer".
Aug 27 2015, 3:35 PM · gnupg, gnupg (gpg21), Debian, Bug Report
werner added projects to T1845: sending large keys to keyserver push fails with silent hang and "assuan_inquire failed: Too much data for IPC layer": gnupg (gpg21), gnupg.
Aug 27 2015, 3:35 PM · gnupg, gnupg (gpg21), Debian, Bug Report
werner set External Link to https://bugs.debian.org/770592 on T1845: sending large keys to keyserver push fails with silent hang and "assuan_inquire failed: Too much data for IPC layer".
Aug 27 2015, 3:35 PM · gnupg, gnupg (gpg21), Debian, Bug Report

Aug 24 2015

neal added a comment to T2065: Error when generating keys in a headless environement.

I can't reproduce this. I'm using pinentry 0.9.5 and GnuPG from git. When I
generate a key, it talks nearly 3 minutes for GnuPG to gather the required
amount of entropy, but it eventually returns. Attaching to gpg-agent using gdb,
it appears that gpg-agent is "suck" in the generate key function:

  #9  0x00007f13a08da9ce in ?? () from /lib/x86_64-linux-gnu/libgcrypt.so.20
  (gdb) 
  #10 0x00007f13a08ca2db in gcry_pk_genkey ()
     from /lib/x86_64-linux-gnu/libgcrypt.so.20
  (gdb) 
  #11 0x000000000041f51f in agent_genkey (ctrl=0x1b69e80, cache_nonce=0x0, 
      keyparam=0x7f1398001e70 "(genkey(rsa(nbits 4:1024)))", keyparamlen=27, 
      no_protection=0, override_passphrase=0x0, preset=0, outbuf=0x7f139fccfdb0)
      at ../../../gnupg/agent/genkey.c:479
  479	  rc = gcry_pk_genkey (&s_key, s_keyparam );

So, I seriously doubt that this is a problem with pinentry. And also I doubt
that it is a problem with GnuPG. Most likely, you need to wait for the system
to generate more entropy.

If you think gpg or gpg-agent is really hung, it would be nice if you could use
gdb to attach and then get a backtrace and post that here.

Thanks!

Neal

Aug 24 2015, 1:16 PM · Bug Report, Arch, pinentry, gnupg (gpg21)

Aug 20 2015

werner added a comment to T1985: Option --try-all-secrets doesn't work.

I take this because I have a related other improvement in mind.

Aug 20 2015, 2:44 PM · gnupg (gpg21), Bug Report, gnupg
werner claimed T1985: Option --try-all-secrets doesn't work.
Aug 20 2015, 2:44 PM · gnupg (gpg21), Bug Report, gnupg

Aug 18 2015

ueno added a comment to T1985: Option --try-all-secrets doesn't work.

D304: 668_0001-Make-try-all-secrets-work-for-hidden-recipients.patch

Aug 18 2015, 10:17 AM · gnupg (gpg21), Bug Report, gnupg
ueno added a comment to T1985: Option --try-all-secrets doesn't work.

I have also encountered this while testing the --throw-keyids option with 2.1.6.
It seemed to me that the fix is not that hard, so I'm attaching a patch.

Aug 18 2015, 10:17 AM · gnupg (gpg21), Bug Report, gnupg

Aug 13 2015

fleblanc added a comment to T2065: Error when generating keys in a headless environement.

Here is the content of my gpg-agent.conf:
debug-pinentry
log-file /home/fxleblanc/gpg-errors.txt
pinentry-program /usr/bin/pinentry-curses

Here is the content of my log file:
gpg: reading options from '/home/fxleblanc/.gnupg/gpg.conf'
gpg (GnuPG) 2.1.6; Copyright (C) 2015 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

gpg: enabled debug flags: packet mpi crypto filter iobuf memory cache memstat
trust hashing cardio ipc clock lookup extprog

gpg: signal Interrupt caught ... exiting

I interrupted the program because it wasn't doing anything after I entered my
passphrase.

Aug 13 2015, 11:30 PM · Bug Report, Arch, pinentry, gnupg (gpg21)
werner updated subscribers of T2065: Error when generating keys in a headless environement.
Aug 13 2015, 6:14 PM · Bug Report, Arch, pinentry, gnupg (gpg21)
werner assigned T2065: Error when generating keys in a headless environement to neal.
Aug 13 2015, 6:14 PM · Bug Report, Arch, pinentry, gnupg (gpg21)
werner added a comment to T2065: Error when generating keys in a headless environement.

--debug-pinentry is an option for the gpg-agent. Thus put the line

debug-pinentry

into gpg-agent.conf and make sure that there is also a log-file option.

Aug 13 2015, 6:14 PM · Bug Report, Arch, pinentry, gnupg (gpg21)

Aug 12 2015

fleblanc added a comment to T2065: Error when generating keys in a headless environement.

I compiled pinentry version 0.9.5 and tried to regenerate my keys. The good news
is that the curses window appeared and I could enter my passphrase. The bad news
is that after I entered the passphrase(with the repetition), the program
freezed, not returning any prompt and not giving any sign of life(I checked with
top to be sure and nothing).

Also, when I tried to use the --debug-pinentry, gpg didn't recognize it as a
valid argument. I use gpg 2.1.6.

Aug 12 2015, 11:11 PM · Bug Report, Arch, pinentry, gnupg (gpg21)
werner changed Version from 2.1.6 to 0.9.1 on T2065: Error when generating keys in a headless environement.
Aug 12 2015, 12:36 PM · Bug Report, Arch, pinentry, gnupg (gpg21)
werner added a comment to T2065: Error when generating keys in a headless environement.

Please update to pinentry 0.95 and try again. You may also use the gpg-agent
option --debug-pinentry which shows the communication between gpg-agent and
pinentry.

Aug 12 2015, 12:36 PM · Bug Report, Arch, pinentry, gnupg (gpg21)

Aug 11 2015

fleblanc added a comment to T2065: Error when generating keys in a headless environement.

pinentry-curses 0.9.1

Aug 11 2015, 3:00 PM · Bug Report, Arch, pinentry, gnupg (gpg21)
werner added a comment to T2065: Error when generating keys in a headless environement.

Which pinentry version are you using?

Aug 11 2015, 10:05 AM · Bug Report, Arch, pinentry, gnupg (gpg21)
werner lowered the priority of T2065: Error when generating keys in a headless environement from High to Normal.
Aug 11 2015, 10:04 AM · Bug Report, Arch, pinentry, gnupg (gpg21)

Aug 10 2015

fleblanc set Version to 2.1.6 on T2065: Error when generating keys in a headless environement.
Aug 10 2015, 4:46 PM · Bug Report, Arch, pinentry, gnupg (gpg21)
fleblanc added projects to T2065: Error when generating keys in a headless environement: gnupg (gpg21), pinentry, Arch, Bug Report.
Aug 10 2015, 4:46 PM · Bug Report, Arch, pinentry, gnupg (gpg21)
fleblanc set External Link to https://bugs.archlinux.org/task/29199 on T2065: Error when generating keys in a headless environement.
Aug 10 2015, 4:46 PM · Bug Report, Arch, pinentry, gnupg (gpg21)

Aug 4 2015

werner removed a project from T2031: GnuPG 2.1 Migration fails badly with (weird) PGP2 key in pubring: In Progress.
Aug 4 2015, 5:36 PM · Bug Report, gnupg, gnupg (gpg21)
werner added a project to T2031: GnuPG 2.1 Migration fails badly with (weird) PGP2 key in pubring: Restricted Project.
Aug 4 2015, 5:36 PM · Bug Report, gnupg, gnupg (gpg21)
werner added a comment to T2031: GnuPG 2.1 Migration fails badly with (weird) PGP2 key in pubring.

Dup key fixed with commit 4a326d7

Aug 4 2015, 5:36 PM · Bug Report, gnupg, gnupg (gpg21)
werner added a comment to T2031: GnuPG 2.1 Migration fails badly with (weird) PGP2 key in pubring.

commit f05a63b fixes the main problem.
I'll now check why the migration creates a duplicate key.

Aug 4 2015, 12:41 PM · Bug Report, gnupg, gnupg (gpg21)
werner added a project to T2031: GnuPG 2.1 Migration fails badly with (weird) PGP2 key in pubring: In Progress.
Aug 4 2015, 12:41 PM · Bug Report, gnupg, gnupg (gpg21)

Jul 4 2015

thomas added a comment to T2031: GnuPG 2.1 Migration fails badly with (weird) PGP2 key in pubring.

Another small note: The problematic key was in wide-spread use and additionally
it was distributed until few years ago with Apache's KEYS file and still is
listed here: https://people.apache.org/keys/committer/lars.asc

And I would not call my keyring "very large", it contains less than 1700 keys,
mostly fetched using "keyserver-options auto-key-retrieve" when reading mailing
lists.

So it probably does not only affect me.

Jul 4 2015, 8:59 AM · Bug Report, gnupg, gnupg (gpg21)
thomas raised the priority of T2031: GnuPG 2.1 Migration fails badly with (weird) PGP2 key in pubring from High to Unbreak Now!.
Jul 4 2015, 8:43 AM · Bug Report, gnupg, gnupg (gpg21)
thomas added a comment to T2031: GnuPG 2.1 Migration fails badly with (weird) PGP2 key in pubring.

Two more details:

  1. All secret keys become unusable in this situation until you revert to a

backup of the public keyring, therefore I propose status "critical" (data loss)

  1. The duplicates (or even triplicates with my own keyring) of the keys only

have one uid, even if the original has more.

Jul 4 2015, 8:43 AM · Bug Report, gnupg, gnupg (gpg21)

Jul 3 2015

aheinecke added projects to T2031: GnuPG 2.1 Migration fails badly with (weird) PGP2 key in pubring: gnupg (gpg21), gnupg, Bug Report.
Jul 3 2015, 8:52 PM · Bug Report, gnupg, gnupg (gpg21)

Jun 30 2015

werner added a comment to T1819: "gpg --gen-key" failed on Windows.

Probably already fixed.

Jun 30 2015, 11:06 AM · Duplicate, Windows 32, gnupg (gpg21), Windows, Bug Report, gnupg
werner removed a project from T1819: "gpg --gen-key" failed on Windows: Info Needed.
Jun 30 2015, 11:06 AM · Duplicate, Windows 32, gnupg (gpg21), Windows, Bug Report, gnupg
werner closed T1819: "gpg --gen-key" failed on Windows as Resolved.
Jun 30 2015, 11:06 AM · Duplicate, Windows 32, gnupg (gpg21), Windows, Bug Report, gnupg

Jun 22 2015

werner added a project to T2010: Error when converting keyring to gpg 2.1: gnupg.
Jun 22 2015, 11:08 AM · Duplicate, gnupg, Windows 32, Bug Report, gnupg (gpg21), Windows
gp_ast added a comment to T2010: Error when converting keyring to gpg 2.1.

In gpg4win there is a kwatchgnupg.exe but it throws an error stating that it is
not "installed" within my $PATH variable. The weird thing is, that I started it
from a command prompt somewhere in my filesystem, so its path is set in my $PATH
variable. Strange ...

In last consequence I even tried it with Wireshark and did not get any results
observing localhost and running the command again.

Isn't the output of the log (posted before) enough information or is there any
other way to collect the information you need?

Jun 22 2015, 10:46 AM · Duplicate, gnupg, Windows 32, Bug Report, gnupg (gpg21), Windows

Jun 20 2015

werner added a comment to T2010: Error when converting keyring to gpg 2.1.

watchgnupg might be missing in the installer. It should be in gpg4win, though.
Anyway using it on Unix with --tcp is much more convenient.

Jun 20 2015, 3:15 PM · Duplicate, gnupg, Windows 32, Bug Report, gnupg (gpg21), Windows

Jun 18 2015

gp_ast added a comment to T2010: Error when converting keyring to gpg 2.1.

Jun 18 2015, 4:30 PM · Duplicate, gnupg, Windows 32, Bug Report, gnupg (gpg21), Windows
gp_ast added a comment to T2010: Error when converting keyring to gpg 2.1.

Sorry, but this is not working for me. I do not find watchgnupg executable and
gnupg.org states that this tool does not exist for windows. Maybe I am not clever
enough to find it.
Anyhow I extended the gpg.conf according to your suggestion. (gpg-agent.conf was
already configured like that) I don't know why there is no additional log file
gpg.conf created. I attached my two config files to this issue.

I deleted the "gpg-v21-migrated" file and rerun "gpg -K --verbose". Attached to
this issue you will find my gpg-agent.log . This time it looks like it has more
output in it than the last time.

Jun 18 2015, 4:30 PM · Duplicate, gnupg, Windows 32, Bug Report, gnupg (gpg21), Windows

Jun 17 2015

werner added a comment to T2010: Error when converting keyring to gpg 2.1.

Not different than in 2.0. You need to enable logging also for gpg-agent. The
best way to do this is by adding

log-file socket:///temp/S.gnupg-log
debug 1024

to gpg-agent.conf and gpg.conf. gpg-agent.conf is usuallay sufficient.
You may then use

   watchgnupg /temp/S.gnupg-log

to view the log in real time. Frankly, under Windows I often use

log-file tcp://1.2.3.4:4711

or

log-file tcp://[2001:db8::1]:4711

along with

watchgnupg --tcp 4711
Jun 17 2015, 9:04 AM · Duplicate, gnupg, Windows 32, Bug Report, gnupg (gpg21), Windows

Jun 16 2015

werner added projects to T2012: Add support for keyservers specified as IP address: dirmngr, gnupg (gpg21), gnupg, Bug Report.
Jun 16 2015, 10:40 AM · Bug Report, gnupg, gnupg (gpg21), dirmngr
werner set Version to 2.1 on T2012: Add support for keyservers specified as IP address.
Jun 16 2015, 10:40 AM · Bug Report, gnupg, gnupg (gpg21), dirmngr
gp_ast added a comment to T2010: Error when converting keyring to gpg 2.1.

Would you mind to explain how to enable logging in 2.1?
I tried with --log-file [filename] and --logger-file [filename] but it only
created an empty (0 Bytes) file.
I tried to pipe the output to a file with "gpg -K [--verbose] >
c:\temp\gpg21.log" but this didn't work either. Is the K command supposed to be
"unpipeable"? (The output of "gpg --version" can be piped.)

Jun 16 2015, 9:59 AM · Duplicate, gnupg, Windows 32, Bug Report, gnupg (gpg21), Windows
werner removed a project from T2010: Error when converting keyring to gpg 2.1: Windows 64.
Jun 16 2015, 9:17 AM · Duplicate, gnupg, Windows 32, Bug Report, gnupg (gpg21), Windows
werner added a project to T2010: Error when converting keyring to gpg 2.1: Windows 32.
Jun 16 2015, 9:17 AM · Duplicate, gnupg, Windows 32, Bug Report, gnupg (gpg21), Windows
werner added a comment to T2010: Error when converting keyring to gpg 2.1.

The "migration succeeded" despite of the I/O errors smells fishy. Can you
please delete the "gpg-v21-migrated" file in
C:/Users/xxxxx/AppData/Roaming/gnupg/ and try again with a log file?

Jun 16 2015, 9:17 AM · Duplicate, gnupg, Windows 32, Bug Report, gnupg (gpg21), Windows

Jun 15 2015

gp_ast added projects to T2010: Error when converting keyring to gpg 2.1: Windows, gnupg (gpg21), Windows 64, Bug Report.
Jun 15 2015, 4:41 PM · Duplicate, gnupg, Windows 32, Bug Report, gnupg (gpg21), Windows

Jun 9 2015

werner added a comment to T1955: Prefer keys with no or cached passphrase..

This also extends to keys stored on smartcards, see
https://lists.gnupg.org/pipermail/gnupg-devel/2015-June/029959.html

Jun 9 2015, 10:06 AM · gnupg (gpg23), Feature Request

Jun 8 2015

werner added projects to T1955: Prefer keys with no or cached passphrase.: gnupg (gpg21), gnupg.
Jun 8 2015, 8:03 PM · gnupg (gpg23), Feature Request

May 18 2015

gniibe added a comment to T1947: [smartcard] Decryption fails and breaks smartcard reader (Alcor Micro).

It was fixed in 2.1.4.

May 18 2015, 4:01 AM · Bug Report, gnupg, gnupg (gpg21), scd
gniibe closed T1947: [smartcard] Decryption fails and breaks smartcard reader (Alcor Micro) as Resolved.
May 18 2015, 4:01 AM · Bug Report, gnupg, gnupg (gpg21), scd
gniibe removed a project from T1947: [smartcard] Decryption fails and breaks smartcard reader (Alcor Micro): Restricted Project.
May 18 2015, 4:01 AM · Bug Report, gnupg, gnupg (gpg21), scd

May 15 2015

werner added a project to T1985: Option --try-all-secrets doesn't work: gnupg (gpg21).
May 15 2015, 2:14 PM · gnupg (gpg21), Bug Report, gnupg
einalex added a comment to T1975: toggle command seems broken.

perhaps I missed something but...with the command removed how are we able to see
the private keys (esp the details on where they are stored (smartcards)).

May 15 2015, 12:36 PM · Bug Report, gnupg, gnupg (gpg21)
werner lowered the priority of T1975: toggle command seems broken from High to Low.
May 15 2015, 9:30 AM · Bug Report, gnupg, gnupg (gpg21)
werner added a comment to T1975: toggle command seems broken.

The command should be removed because it does not make much sense anymore.
However, it is doumented at many places thus it is not easy to remove.

May 15 2015, 9:30 AM · Bug Report, gnupg, gnupg (gpg21)

May 12 2015

einalex set Version to 2.1.3 on T1975: toggle command seems broken.
May 12 2015, 10:10 PM · Bug Report, gnupg, gnupg (gpg21)
einalex added projects to T1975: toggle command seems broken: gnupg (gpg21), gnupg, Bug Report.
May 12 2015, 10:10 PM · Bug Report, gnupg, gnupg (gpg21)

May 11 2015

werner added a comment to T1089: Please store requests in a cache to avoid sending out duplicate requests (mailto: interface).

This reminds me that we don't have a mail keyserver in 2.1 yet. Need to
evaluate whether it will be useful.

May 11 2015, 8:53 PM · gnupg (gpg23), gnupg, Debian, Feature Request
werner raised the priority of T1089: Please store requests in a cache to avoid sending out duplicate requests (mailto: interface) from Wishlist to Normal.
May 11 2015, 8:53 PM · gnupg (gpg23), gnupg, Debian, Feature Request
werner removed a project from T1089: Please store requests in a cache to avoid sending out duplicate requests (mailto: interface): Stalled.
May 11 2015, 8:53 PM · gnupg (gpg23), gnupg, Debian, Feature Request
werner raised the priority of T1038: Specify and use multiple keyservers from Wishlist to Normal.
May 11 2015, 8:50 PM · gnupg (gpg21), gnupg, Debian, Feature Request
werner added a comment to T1038: Specify and use multiple keyservers.

(funny due date removed)

Lot of things pertaining to keyservers changed in the meantime and we have a
couple of other things in mind as well.

May 11 2015, 8:50 PM · gnupg (gpg21), gnupg, Debian, Feature Request
werner removed Due Date on T1038: Specify and use multiple keyservers.
May 11 2015, 8:50 PM · gnupg (gpg21), gnupg, Debian, Feature Request
werner added a project to T1819: "gpg --gen-key" failed on Windows: Info Needed.
May 11 2015, 7:46 PM · Duplicate, Windows 32, gnupg (gpg21), Windows, Bug Report, gnupg
werner added a comment to T1819: "gpg --gen-key" failed on Windows.

Please try 2.1.3 or the soon to be released 2.1.4

May 11 2015, 7:46 PM · Duplicate, Windows 32, gnupg (gpg21), Windows, Bug Report, gnupg
werner closed T1853: ecdh/ecdsa private key export, MPI encoding oddity as Resolved.
May 11 2015, 7:08 PM · Bug Report, gnupg, gnupg (gpg21)
werner removed a project from T1853: ecdh/ecdsa private key export, MPI encoding oddity: Restricted Project.
May 11 2015, 7:08 PM · Bug Report, gnupg, gnupg (gpg21)

Apr 14 2015

gniibe added a comment to T1947: [smartcard] Decryption fails and breaks smartcard reader (Alcor Micro).

Fix committed as 971d558e862db878a7310e06ed7116dbe36886ab.

Apr 14 2015, 7:25 AM · Bug Report, gnupg, gnupg (gpg21), scd
gniibe added a project to T1947: [smartcard] Decryption fails and breaks smartcard reader (Alcor Micro): Restricted Project.
Apr 14 2015, 7:25 AM · Bug Report, gnupg, gnupg (gpg21), scd

Apr 10 2015

corsac added a comment to T1947: [smartcard] Decryption fails and breaks smartcard reader (Alcor Micro).

Here's the lsusb output:

Bus 001 Device 002: ID 058f:9540 Alcor Micro Corp.
Device Descriptor:

bLength                18
bDescriptorType         1
bcdUSB               2.01
bDeviceClass            0 (Defined at Interface level)
bDeviceSubClass         0 
bDeviceProtocol         0 
bMaxPacketSize0         8
idVendor           0x058f Alcor Micro Corp.
idProduct          0x9540 
bcdDevice            1.20
iManufacturer           1 Generic
iProduct                2 EMV Smartcard Reader
iSerial                 0 
bNumConfigurations      1
Configuration Descriptor:
  bLength                 9
  bDescriptorType         2
  wTotalLength           93
  bNumInterfaces          1
  bConfigurationValue     1
  iConfiguration          0 
  bmAttributes         0xa0
    (Bus Powered)
    Remote Wakeup
  MaxPower               50mA
  Interface Descriptor:
    bLength                 9
    bDescriptorType         4
    bInterfaceNumber        0
    bAlternateSetting       0
    bNumEndpoints           3
    bInterfaceClass        11 Chip/SmartCard
    bInterfaceSubClass      0 
    bInterfaceProtocol      0 
    iInterface              0 
    ChipCard Interface Descriptor:
      bLength                54
      bDescriptorType        33
      bcdCCID              1.10  (Warning: Only accurate for version 1.0)
      nMaxSlotIndex           0
      bVoltageSupport         7  5.0V 3.0V 1.8V 
      dwProtocols             3  T=0 T=1
      dwDefaultClock       3700
      dwMaxiumumClock     12000
      bNumClockSupported      3
      dwDataRate           9946 bps
      dwMaxDataRate      688172 bps
      bNumDataRatesSupp.    138
      dwMaxIFSD             254
      dwSyncProtocols  00000007  2-wire 3-wire I2C
      dwMechanical     00000000 
      dwFeatures       000404BE
        Auto configuration based on ATR
        Auto activation on insert
        Auto voltage selection
        Auto clock change
        Auto baud rate change
        Auto PPS made by CCID
        Auto IFSD exchange
        Short and extended APDU level exchange
      dwMaxCCIDMsgLen       272
      bClassGetResponse    echo
      bClassEnvelope       echo
      wlcdLayout           none
      bPINSupport             0 
      bMaxCCIDBusySlots       1
    Endpoint Descriptor:
      bLength                 7
      bDescriptorType         5
      bEndpointAddress     0x81  EP 1 IN
      bmAttributes            3
        Transfer Type            Interrupt
        Synch Type               None
        Usage Type               Data
      wMaxPacketSize     0x0004  1x 4 bytes
      bInterval               1
    Endpoint Descriptor:
      bLength                 7
      bDescriptorType         5
      bEndpointAddress     0x02  EP 2 OUT
      bmAttributes            2
        Transfer Type            Bulk
        Synch Type               None
        Usage Type               Data
      wMaxPacketSize     0x0010  1x 16 bytes
      bInterval               0
    Endpoint Descriptor:
      bLength                 7
      bDescriptorType         5
      bEndpointAddress     0x83  EP 3 IN
      bmAttributes            2
        Transfer Type            Bulk
        Synch Type               None
        Usage Type               Data
      wMaxPacketSize     0x0010  1x 16 bytes
      bInterval               0

Binary Object Store Descriptor:

bLength                 5
bDescriptorType        15
wTotalLength           12
bNumDeviceCaps          1
USB 2.0 Extension Device Capability:
  bLength                 7
  bDescriptorType        16
  bDevCapabilityType      2
  bmAttributes   0x00000002
    Link Power Management (LPM) Supported

Device Status: 0x0000

  (Bus Powered)

For the scdaemon log, do you need it:

  • with pcscd running or with GnuPG direct ccid implementation?
  • in “working” condition (for example doing a gpg --card-status or gpg --sign)?
  • during the “breakage” (doing a gpg --decrypt)
  • in “broken” condition (after doing a gpg --decrypt).

Sorry if my report wasn't so clear. The broken behavior only appears:

  • when using GnuPG ccid implementation (instead of pcscd);
  • when doing a decrypt operation (maybe also an encrypt, I didn't check yet, but I'd be surprised since the smartcard hardly do any job here)

After trying a decrypt operation, the USB reader is in a non working condition, and I can only restore working condition by doing a reboot (I'v
tried to cut power to the USB bus but that doesn't seem enough).

Apr 10 2015, 10:09 AM · Bug Report, gnupg, gnupg (gpg21), scd
gniibe removed a project from T1947: [smartcard] Decryption fails and breaks smartcard reader (Alcor Micro): OpenPGP.
Apr 10 2015, 9:47 AM · Bug Report, gnupg, gnupg (gpg21), scd
gniibe added a project to T1947: [smartcard] Decryption fails and breaks smartcard reader (Alcor Micro): scd.
Apr 10 2015, 9:47 AM · Bug Report, gnupg, gnupg (gpg21), scd
gniibe added a comment to T1947: [smartcard] Decryption fails and breaks smartcard reader (Alcor Micro).

Please give me the output of lsusb -v -d 058f:9540
and debug log of scdaemon.
Do you mean --card-status works bug --decrypt fails?

Apr 10 2015, 9:46 AM · Bug Report, gnupg, gnupg (gpg21), scd
gniibe claimed T1947: [smartcard] Decryption fails and breaks smartcard reader (Alcor Micro).
Apr 10 2015, 9:46 AM · Bug Report, gnupg, gnupg (gpg21), scd

Apr 9 2015

corsac set Version to 2.1.2 on T1947: [smartcard] Decryption fails and breaks smartcard reader (Alcor Micro).
Apr 9 2015, 4:35 PM · Bug Report, gnupg, gnupg (gpg21), scd
corsac added projects to T1947: [smartcard] Decryption fails and breaks smartcard reader (Alcor Micro): OpenPGP, gnupg (gpg21), gnupg, Bug Report.
Apr 9 2015, 4:35 PM · Bug Report, gnupg, gnupg (gpg21), scd

Apr 4 2015

werner added a project to T1932: GnuPG 2.1 (gpgsm):set default of 'hash-algo' from sha1 to sha256: Feature Request.
Apr 4 2015, 11:15 AM · Feature Request, gnupg, gnupg (gpg21), S/MIME
werner lowered the priority of T1932: GnuPG 2.1 (gpgsm):set default of 'hash-algo' from sha1 to sha256 from High to Normal.
Apr 4 2015, 11:15 AM · Feature Request, gnupg, gnupg (gpg21), S/MIME
werner removed a project from T1932: GnuPG 2.1 (gpgsm):set default of 'hash-algo' from sha1 to sha256: Bug Report.
Apr 4 2015, 11:15 AM · Feature Request, gnupg, gnupg (gpg21), S/MIME

Mar 25 2015

werner added a comment to T1932: GnuPG 2.1 (gpgsm):set default of 'hash-algo' from sha1 to sha256.

Never mind. Just pushed the changes for the 2.0 branch.

Mar 25 2015, 10:30 AM · Feature Request, gnupg, gnupg (gpg21), S/MIME
emanuel added a comment to T1932: GnuPG 2.1 (gpgsm):set default of 'hash-algo' from sha1 to sha256.

Thanks!

Is there a need to backport it to 2.0 ?

No

Mar 25 2015, 10:23 AM · Feature Request, gnupg, gnupg (gpg21), S/MIME
werner added a comment to T1932: GnuPG 2.1 (gpgsm):set default of 'hash-algo' from sha1 to sha256.

Done for master (gpg21). 2.1.3 will be released in a few days.

Is there a need to backport it to 2.0 ?

Mar 25 2015, 10:18 AM · Feature Request, gnupg, gnupg (gpg21), S/MIME
werner added a project to T1932: GnuPG 2.1 (gpgsm):set default of 'hash-algo' from sha1 to sha256: Restricted Project.
Mar 25 2015, 10:18 AM · Feature Request, gnupg, gnupg (gpg21), S/MIME
emanuel updated subscribers of T1932: GnuPG 2.1 (gpgsm):set default of 'hash-algo' from sha1 to sha256.
Mar 25 2015, 8:37 AM · Feature Request, gnupg, gnupg (gpg21), S/MIME
emanuel added projects to T1932: GnuPG 2.1 (gpgsm):set default of 'hash-algo' from sha1 to sha256: S/MIME, gnupg (gpg21), gnupg, Bug Report.
Mar 25 2015, 8:37 AM · Feature Request, gnupg, gnupg (gpg21), S/MIME

Mar 19 2015

werner added a project to T1853: ecdh/ecdsa private key export, MPI encoding oddity: Restricted Project.
Mar 19 2015, 6:09 PM · Bug Report, gnupg, gnupg (gpg21)
werner added a comment to T1853: ecdh/ecdsa private key export, MPI encoding oddity.

Thanks. That was helpful.

Fixed with commit cf83ff0. You should now see no more leading zero bytes and
correct bit lengths after decrypting a protected key. Internally GnuPG may use
a leading zero byte but with an gpg --export it will be removed.

Mar 19 2015, 6:09 PM · Bug Report, gnupg, gnupg (gpg21)

Mar 16 2015

andy_s added a comment to T1853: ecdh/ecdsa private key export, MPI encoding oddity.

Mar 16 2015, 8:48 PM · Bug Report, gnupg, gnupg (gpg21)
andy_s added a comment to T1853: ecdh/ecdsa private key export, MPI encoding oddity.

The problem was with protected private keys - I've got my own tool for
decrypting them, and that's how I found the problem in the first place.

I've attached two keypairs which exhibit the issue, both in keyring and in
keybox+key formats (password is "password") - both use NIST P-256, and the
encryption key on Test2 (4e86073a308aa22e) has the extra leading zero byte on
its 'd' value.

Mar 16 2015, 8:48 PM · Bug Report, gnupg, gnupg (gpg21)
werner added a comment to T1853: ecdh/ecdsa private key export, MPI encoding oddity.

[Sorry, I didn't found your mail anymore.]

I fixed two bug related to the encoding of MPI created by ECC operations.
ab17f7b gpg: Create all MPIs with RFC-4880 correct length headers.
8bc1deb gpg: Fix broken write of opaque MPI length header.

However your problem was with private keys. Protected private keys or
non-protected? Can you add an example file.

Mar 16 2015, 8:23 PM · Bug Report, gnupg, gnupg (gpg21)
werner added projects to T1819: "gpg --gen-key" failed on Windows: Windows, gnupg (gpg21), Windows 32.
Mar 16 2015, 3:11 PM · Duplicate, Windows 32, gnupg (gpg21), Windows, Bug Report, gnupg

Feb 27 2015

andy_s added a comment to T1853: ecdh/ecdsa private key export, MPI encoding oddity.

Posted to the list, though not as a subscriber (so it'll need to be approved).

I apologize if I jumped the gun by posting here first - given that my question
was effectively "is this a bug?" (and that I was expecting the answer to be
"yes"), I was erring on the side of caution.

Feb 27 2015, 3:23 PM · Bug Report, gnupg, gnupg (gpg21)
werner added a comment to T1853: ecdh/ecdsa private key export, MPI encoding oddity.

Well, this sounds more like a question than a bug. Can you please post it to
gnupg-devel?

Feb 27 2015, 1:49 PM · Bug Report, gnupg, gnupg (gpg21)