Re: Typical smartcard response times
Pali Rohár <[email protected]> Sun, 9 Feb 2020 14:32:08 +0100
| Newsgroups | gmane.comp.encryption.opensc.devel |
|---|---|
| Message-ID | <20200209133208.kw47hxml3w6ggow3@pali> |
On Sunday 09 February 2020 13:53:46 Ludovic Rousseau wrote: > Le dim. 9 févr. 2020 à 10:25, Marian Ďurkovič <[email protected]> a écrit : > > > > Hi all, > > Hello, > > > during experiments with Slovak eID cards it became apparent, that every single operation takes > 500 msec. > > > > When the eID is not inserted in USB reader, everything works quite fast: > > > > time pkcs11-tool --module /Library/OpenSC/lib/pkcs11-spy.so -L > > Available slots: > > Slot 0 (0x0): Gemalto PC Twin Reader > > (empty) > > > > real 0m0.060s > > user 0m0.007s > > sys 0m0.009s > > > > However, as soon as the eID is inserted, it changes significantly: > > > > real 0m2.586s > > user 0m0.053s > > sys 0m0.046s > > > > Spy library shows, that with inserted eID, every single operation (C_Initialize, C_GetSlotList, C_GetSlotInfo, C_GetTokenInfo) takes > 500 msec. The same happens with official drivers. > > > > As a result, the whole procedure to e.g. pull a certificate from this eID takes about 7 seconds... > > > > Is this expected behaviour? What are typical response times for other smartcards? > > The speed depends on many factors. One of them is the speed between > the card and the reader. > Some cards are faster than others. > Some readers are faster than others. > > What is the ATR of your cards? Hello! In OpenSC project on github is already an open issue for Slovak eID cards: https://github.com/OpenSC/OpenSC/issues/208 There is also posted ATR of a card. -- Pali Rohár [email protected] _______________________________________________ Opensc-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensc-devel