2012/9/4 Bruno Jesus <[email protected]>:
> On Tue, Sep 4, 2012 at 11:29 AM, Frederic Mauraton
> <[email protected]> wrote:
>> Hi everybody,
>>
>> I am working with a VaultIC 460 token in a pcsc-lite(1.8.3) and ccid driver
>> (1.4.7) environment.
>>
>> When I send an apdu to create a rsa key pair, the driver returns the generic
>> error 612 (IFD_COMMUNICATION_ERROR) and PC/SC returns the error 0x80100016
>> (SCARD_E_NOT_TRANSACTED) to the application..
>>
>> After investigation it seems that the problem comes from is the
>> ccid.readTimeout which has DEFAULT_COM_READ_TIMEOUT value (2s).
>>
>> As the card response time to an RSA generate Key pair apdu is sometimes
>> quite long (maybe 4 minutes for a 4096 RSA key pair), I have tried to change
>> this default timeout value and it works fine.
>>
>> So my questions are :
>>
>> As there is no timeout defined on CCID specification, why there is this
>> timeout ?
>
> If that's a contact card it should be issuing the ISO NULL byte (while
> processing the RSA stuff) to the reader extending the timeout. In
> these cases as far as I remember the reader asks for a time extension
> to the driver, and this happens until the card finishes the command.

Exact.

It is a (classic) bug in the token firmware.

Bye

-- 
 Dr. Ludovic Rousseau
_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to