Re: Typical smartcard response times

Ludovic Rousseau <[email protected]> Mon, 10 Feb 2020 21:36:18 +0100
Newsgroups gmane.comp.encryption.opensc.devel
Message-ID <CAGstE8BwNuGVG5gamm7Mk0+CWUnq-n8o54TgiB8yPxv0HT2daQ@mail.gmail.com>
Le lun. 10 févr. 2020 à 15:46, Marian Ďurkovič <[email protected]> a écrit :
>
> Tested on Linux with the same HW and here it works much better:
>
> time pkcs11-tool -login -O
>
> real    0m6.766s
> user    0m0.064s
> sys    0m0.012s
>
> Time to complete PKCS#11 function only 72 msec (instead of 575 msec on MAC):
>
> 11: C_GetAttributeValue
> 2020-02-10 14:45:04.525
>
> 12: C_GetAttributeValue
> 2020-02-10 14:45:04.597
>
> APDU times starting from 6 msec
>
> OK, so it looks like MAC-specific problem...
> Any debugging possibilities on MAC?

Very interesting.

Have you tried what Peter wrote in a previous email:
1. using OPENSC_DEBUG=255 -> exact timing of APDUs

Compare a log generated on macOS with a log generated on Linux for the
same command, like "pkcs11-tool -login -O"

It would be nice to known what parts are slower on macOS than on Linux.
Maybe it is the APDU processing, maybe not.

Bye

-- 
 Dr. Ludovic Rousseau


_______________________________________________
Opensc-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensc-devel