smartcard: PIN pad support

NIIBE Yutaka gniibe at fsij.org
Wed Jan 5 05:10:08 CET 2011


Hi,

I am adding PIN pad support to Gnuk.  I did some experiments and found
things.  Here is the summary of PIN pad support status.  Please
correct me, if I'm wrong.

  * PIN pad support is only available for GnuPG's in-stock ccid-driver.

  * It is not available for PC/SC lite backend (yet).

  * It is only used for VERIFY command.

    Yes, we have the functions iso7816_change_reference_data_kp and
    iso7816_reset_retry_counter_kp, but callers are not yet
    implemented to support PIN pad.

  * ccid-driver only support a few readers for PIN pad.

    I needed following patch for Gnuk.


diff --git a/scd/ccid-driver.c b/scd/ccid-driver.c
index b71ff6a..60c341e 100644
--- a/scd/ccid-driver.c
+++ b/scd/ccid-driver.c
@@ -209,7 +209,8 @@ enum {
   VENDOR_SCM    = 0x04e6,
   VENDOR_OMNIKEY= 0x076b,
   VENDOR_GEMPC  = 0x08e6,
-  VENDOR_KAAN   = 0x0d46
+  VENDOR_KAAN   = 0x0d46,
+  VENDOR_FSIJ	= 0x234B
 };

 /* A list and a table with special transport descriptions. */
@@ -3072,6 +3073,7 @@ ccid_transceive_secure (ccid_driver_t handle,
     {
     case VENDOR_SCM:  /* Tested with SPR 532. */
     case VENDOR_KAAN: /* Tested with KAAN Advanced (1.02). */
+    case VENDOR_FSIJ:
       break;
     case VENDOR_CHERRY:
       /* The CHERRY XX44 keyboard echos an asterisk for each entered
-- 



More information about the Gnupg-devel mailing list