decrypt luks with gnupg Card: determine if cardreader has pinpad

NIIBE Yutaka gniibe at fsij.org
Thu Apr 2 04:12:48 CEST 2015


On 03/31/2015 08:25 PM, Jan Kowalsky wrote:
> I'd like to use the same script also for cardreaders without pinpad -
> but then I have to determine, if a cardreader has one or not. Is their
> any possibility for getting this information?

You can use the output of lsusb -v.

If the card reader has pinpad capability, you can find something like:

        bPINSupport             3  verification modification

> /lib/cryptsetup/scripts/decrypt_gnupg_sc:
[...]
>     # quick hack for starting pcscd
>     pcscd &

Well, I don't think pcscd (and libccid) is required if your gnupg is
new enough (2.0.23 or later).
-- 



More information about the Gnupg-users mailing list