Re: [opensc-devel] C_SignFinal fails when using a pinpad reader

2010-05-18 Thread Ludovic Rousseau
2010/5/18 Martin Paljak : > On May 18, 2010, at 10:30 , Ludovic Rousseau wrote: >> 2010/5/14 Martin Paljak : >>> On May 11, 2010, at 19:44 , Ludovic Rousseau wrote: The reader does not accept PIN longer than 8. I willl write about that on my blog [1] later. >>> >>> In this case it should

Re: [opensc-devel] C_SignFinal fails when using a pinpad reader

2010-05-18 Thread Ludovic Rousseau
2010/5/18 Viktor TARASOV : > Check if your 'entersafe.profile' has 'local' flag for PIN. I guess the profile change imposes to reformat the card, right? That is what I did (reformat the card) and I can now sign using the pinpad reader. Problem fixed. Thanks. -- Dr. Ludovic Rousseau __

Re: [opensc-devel] C_SignFinal fails when using a pinpad reader

2010-05-18 Thread Viktor TARASOV
Ludovic Rousseau wrote: > 2010/5/13 Viktor TARASOV : > >> Viktor TARASOV wrote: >> >>> Hello Ludovic, >>> >>> >>> Ludovic Rousseau wrote: >>> >>> 2010/5/11 Viktor TARASOV : > Ludovic Rousseau wrote: > > > >> 2010/5/11 Viktor

Re: [opensc-devel] C_SignFinal fails when using a pinpad reader

2010-05-18 Thread Martin Paljak
On May 18, 2010, at 10:30 , Ludovic Rousseau wrote: > 2010/5/14 Martin Paljak : >> On May 11, 2010, at 19:44 , Ludovic Rousseau wrote: >>> The reader does not accept PIN longer than 8. I willl write about that >>> on my blog [1] later. >> >> In this case it should be either fixed in reader-pcsc.c

Re: [opensc-devel] C_SignFinal fails when using a pinpad reader

2010-05-18 Thread Ludovic Rousseau
2010/5/14 Martin Paljak : > On May 11, 2010, at 19:44 , Ludovic Rousseau wrote: >> The reader does not accept PIN longer than 8. I willl write about that >> on my blog [1] later. > > In this case it should be either fixed in reader-pcsc.c for this reader (if > it is possible to auto-discover it, w

Re: [opensc-devel] C_SignFinal fails when using a pinpad reader

2010-05-18 Thread Ludovic Rousseau
2010/5/13 Viktor TARASOV : > Viktor TARASOV wrote: >> Hello Ludovic, >> >> >> Ludovic Rousseau wrote: >> >>> 2010/5/11 Viktor TARASOV : >>> >>> Ludovic Rousseau wrote: > 2010/5/11 Viktor TARASOV : > > > >>> I can send an OpenSC log file level=99 (200 KB uncompress

Re: [opensc-devel] C_SignFinal fails when using a pinpad reader

2010-05-14 Thread Ludovic Rousseau
2010/5/14 Viktor TARASOV : > Parsing USB bus/device: 005/006 >  idVendor:  0x08E6  iManufacturer: Gemplus >  idProduct: 0x3478  iProduct: USB GemPCPinpad SmartCard Reader >  Found a CCID/ICCD device at interface 0 >  idVendor: 0x08E6 >  iManufacturer: Gemplus >  idProduct: 0x3478 >  iProduct: USB G

Re: [opensc-devel] C_SignFinal fails when using a pinpad reader

2010-05-14 Thread Viktor TARASOV
Ludovic Rousseau wrote: 2010/5/14 Viktor TARASOV : Ludovic Rousseau wrote: 2010/5/14 Viktor TARASOV : We'll wait for the comments in Ludovic's blog, but I tested feitian card with "Gemalto PC Pinpad Reader" without the patch and with the PIN length 12 bytes. The Gema

Re: [opensc-devel] C_SignFinal fails when using a pinpad reader

2010-05-14 Thread Ludovic Rousseau
2010/5/14 Viktor TARASOV : > Ludovic Rousseau wrote: >> >> 2010/5/14 Viktor TARASOV : >> >>> >>> We'll wait for the comments in Ludovic's blog, but I tested feitian card >>> with "Gemalto PC Pinpad Reader" without the patch and with the PIN >>> length 12 bytes. >>> >> >> The Gemalto pinpad reader d

Re: [opensc-devel] C_SignFinal fails when using a pinpad reader

2010-05-14 Thread Viktor TARASOV
Martin Paljak wrote: > On May 14, 2010, at 12:20 , Viktor TARASOV wrote: > >> Martin Paljak wrote: >> >> >>> For some cases having a lock on the card during C_SignInit -> >>> C_Sign(Final), but this probably does not concern the cache invalidation >>> between C_Login and C_Sign. >>> >>>

Re: [opensc-devel] C_SignFinal fails when using a pinpad reader

2010-05-14 Thread Viktor TARASOV
Ludovic Rousseau wrote: 2010/5/14 Viktor TARASOV : We'll wait for the comments in Ludovic's blog, but I tested feitian card with "Gemalto PC Pinpad Reader" without the patch and with the PIN length 12 bytes. The Gemalto pinpad reader does only accept PIN between 4 and 8 digits. Of cour

Re: [opensc-devel] C_SignFinal fails when using a pinpad reader

2010-05-14 Thread Ludovic Rousseau
2010/5/14 Viktor TARASOV : > We'll wait for the comments in Ludovic's blog, but I tested feitian card > with "Gemalto PC Pinpad Reader" without the patch and with the PIN > length 12 bytes. The Gemalto pinpad reader does only accept PIN between 4 and 8 digits. Of course you can still send a VERIFY

Re: [opensc-devel] C_SignFinal fails when using a pinpad reader

2010-05-14 Thread Viktor TARASOV
Martin Paljak wrote: > On May 14, 2010, at 11:36 , Jan Just Keijser wrote: > >>> In this case it should be either fixed in reader-pcsc.c for this reader (if >>> it is possible to auto-discover it, which may not work on Windows for >>> example) or forced to a reader-suitable value in the CCID d

Re: [opensc-devel] C_SignFinal fails when using a pinpad reader

2010-05-14 Thread Martin Paljak
On May 14, 2010, at 12:20 , Viktor TARASOV wrote: > Martin Paljak wrote: > >> For some cases having a lock on the card during C_SignInit -> C_Sign(Final), >> but this probably does not concern the cache invalidation between C_Login >> and C_Sign. >> > > Do we really need to invalidate cache in

Re: [opensc-devel] C_SignFinal fails when using a pinpad reader

2010-05-14 Thread Viktor TARASOV
Martin Paljak wrote: > On May 13, 2010, at 20:34 , Viktor TARASOV wrote: > >> Using actual trunk I cannot sign with Feitian card neither with >> conventional reader nor with pin pad. >> The reason, afais, in both cases is the same -- after user PIN was >> validated, the signing key parent DF i

Re: [opensc-devel] C_SignFinal fails when using a pinpad reader

2010-05-14 Thread Martin Paljak
On May 14, 2010, at 11:36 , Jan Just Keijser wrote: >>> >> >> In this case it should be either fixed in reader-pcsc.c for this reader (if >> it is possible to auto-discover it, which may not work on Windows for >> example) or forced to a reader-suitable value in the CCID driver. >> >> I guess

Re: [opensc-devel] C_SignFinal fails when using a pinpad reader

2010-05-14 Thread Jan Just Keijser
Martin Paljak wrote: > On May 11, 2010, at 19:44 , Ludovic Rousseau wrote: > >> I think you will need this patch to use the Gemalto pinpad: >> >> Index: src/libopensc/card-entersafe.c >> === >> --- src/libopensc/card-entersafe.c (

Re: [opensc-devel] C_SignFinal fails when using a pinpad reader

2010-05-14 Thread Martin Paljak
On May 11, 2010, at 19:44 , Ludovic Rousseau wrote: > I think you will need this patch to use the Gemalto pinpad: > > Index: src/libopensc/card-entersafe.c > === > --- src/libopensc/card-entersafe.c(revision 4340) > +++ src/libope

Re: [opensc-devel] C_SignFinal fails when using a pinpad reader

2010-05-14 Thread Martin Paljak
On May 13, 2010, at 20:34 , Viktor TARASOV wrote: > Using actual trunk I cannot sign with Feitian card neither with > conventional reader nor with pin pad. > The reason, afais, in both cases is the same -- after user PIN was > validated, the signing key parent DF is selected by full path. Feitian

Re: [opensc-devel] C_SignFinal fails when using a pinpad reader

2010-05-13 Thread Viktor TARASOV
Viktor TARASOV wrote: > Hello Ludovic, > > > Ludovic Rousseau wrote: > >> 2010/5/11 Viktor TARASOV : >> >> >>> Ludovic Rousseau wrote: >>> >>> 2010/5/11 Viktor TARASOV : >> I can send an OpenSC log file level=99 (200 KB uncompressed) if

Re: [opensc-devel] C_SignFinal fails when using a pinpad reader

2010-05-13 Thread Viktor TARASOV
Hello Ludovic, Ludovic Rousseau wrote: > 2010/5/11 Viktor TARASOV : > >> Ludovic Rousseau wrote: >> >>> 2010/5/11 Viktor TARASOV : >>> >>> > I can send an OpenSC log file level=99 (200 KB uncompressed) if needed. > I use the current SVN version of OpenSC. > >

Re: [opensc-devel] C_SignFinal fails when using a pinpad reader

2010-05-11 Thread Ludovic Rousseau
2010/5/11 Viktor TARASOV : > Ludovic Rousseau wrote: >> 2010/5/11 Viktor TARASOV : >> I can send an OpenSC log file level=99 (200 KB uncompressed) if needed. I use the current SVN version of OpenSC. >>> Please, do it. >>> >> >> Attached. bzip2 compressed. >> >> I have a Feitian smart

Re: [opensc-devel] C_SignFinal fails when using a pinpad reader

2010-05-11 Thread Viktor TARASOV
Ludovic Rousseau wrote: > 2010/5/11 Viktor TARASOV : > >>> I can send an OpenSC log file level=99 (200 KB uncompressed) if needed. >>> I use the current SVN version of OpenSC. >>> >> Please, do it. >> > > Attached. bzip2 compressed. > > I have a Feitian smart card and use the entersa

Re: [opensc-devel] C_SignFinal fails when using a pinpad reader

2010-05-11 Thread Ludovic Rousseau
2010/5/11 Viktor TARASOV : >> I can send an OpenSC log file level=99 (200 KB uncompressed) if needed. >> I use the current SVN version of OpenSC. > > Please, do it. Attached. bzip2 compressed. I have a Feitian smart card and use the entersafe card driver. It may be an entersafe card driver bug.

Re: [opensc-devel] C_SignFinal fails when using a pinpad reader

2010-05-11 Thread Viktor TARASOV
Hello, Ludovic Rousseau wrote: > Hello, > > Using a normal reader: > $ pkcs11-tool --slot 9 --sign --input-file aa --output-file a > Please enter User PIN: > Using signature algorithm RSA-X-509 > > Using a pinpad reader: > $ pkcs11-tool --slot 1 --sign --input-file aa --output-file a > Using signa