Now I have only one problem
    NIIBE Yutaka 
    gniibe at fsij.org
       
    Tue Mar 12 14:20:16 CET 2013
    
    
  
On 2013-03-12 at 10:47 +0100, Alina Friedrichsen wrote:
> I have recompiled STABLE-BRANCH-2-0 and all the other stuff.
> I created new keys.
> 
> Now I can sign, but not decrypt with the internal CCID driver.
> If I use pcscd and not the internal driver decryption works.
Is your key 4096-bit?
Please try following patch.
diff --git a/scd/ccid-driver.c b/scd/ccid-driver.c
index ccf579c..dd9fabe 100644
--- a/scd/ccid-driver.c
+++ b/scd/ccid-driver.c
@@ -2840,7 +2840,7 @@ ccid_transceive_apdu_level (ccid_driver_t handle,
   /* The maximum length for a short APDU T=1 block is 261.  For an
      extended APDU T=1 block the maximum length 65544; however
      extended APDU exchange level is not fully supported yet.  */
-  if (apdulen > 289)
+  if (apdulen > sizeof (send_buffer) - 10)
     return CCID_DRIVER_ERR_INV_VALUE; /* Invalid length. */
   
   msg[0] = PC_to_RDR_XfrBlock;
-- 
    
    
More information about the Gnupg-devel
mailing list