Re: [opensc-devel] Cardos sign modifes

2007-07-20 Thread Nils Larsch
Andreas Jellinghaus wrote: > On Wednesday 18 July 2007 22:27:06 Nils Larsch wrote: >> IMHO the right way to fix this would be to tell the profile >> layer to use the decryption operation for signing and not to >> modify the card driver. > > I don't know about the profile layer, so I implemented a

Re: [opensc-devel] Cardos sign modifes

2007-07-20 Thread Andreas Jellinghaus
On Friday 20 July 2007 16:29:44 Dmitry Zhigulin wrote: > Andreas Jellinghaus dungeon.inka.de> writes: > > Dmitry: can you try this? you would need to checkout svn trunk and > > compile it yourself. it works for me (pkcs15-crypt and pkcs11-tool on a > > siemens initialized card). > > All right, Sig

Re: [opensc-devel] Cardos sign modifes

2007-07-20 Thread Dmitry Zhigulin
Andreas Jellinghaus dungeon.inka.de> writes: > > Dmitry: can you try this? you would need to checkout svn trunk and compile > it yourself. it works for me (pkcs15-crypt and pkcs11-tool on a siemens > initialized card). > All right, Sign and Verify is working correctly. Only little problem w

Re: [opensc-devel] Cardos sign modifes

2007-07-20 Thread Andreas Jellinghaus
On Wednesday 18 July 2007 22:27:06 Nils Larsch wrote: > IMHO the right way to fix this would be to tell the profile > layer to use the decryption operation for signing and not to > modify the card driver. I don't know about the profile layer, so I implemented a crude hack, which is not too bad I h

Re: [opensc-devel] Cardos sign modifes

2007-07-20 Thread Dmitry Zhigulin
Nils Larsch gmx.net> writes: > IMHO the right way to fix this would be to tell the profile > layer to use the decryption operation for signing and not to > modify the card driver. > Thanks, So, I need just test if card is cardos, certificate support encryption and use C_DecryptInit/C_Decrypt i

Re: [opensc-devel] Cardos sign modifes

2007-07-18 Thread Nils Larsch
Dmitry wrote: > Some time ago I tests Cardos SC_CARD_TYPE_CARDOS_M4_3, with atr: > 3b:f2:18:00:02:c1:0a:31:fe:58:c8:08:74 > > Sign fails on final transmit of sign adpu. I analyzed adpu winscard.dll log > of > SmartTrustPersonal, which CSP sign correctly. > And found that it use other way of sig

Re: [opensc-devel] Cardos sign modifes

2007-07-18 Thread Dmitry
> any chance you can send a unified diff ("svn diff" or "diff -u" format) with > these changes? that would be great. I did't send, next time will use diff. ___ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.

Re: [opensc-devel] Cardos sign modifes

2007-07-17 Thread Andreas Jellinghaus
hi dmitry, any chance you can send a unified diff ("svn diff" or "diff -u" format) with these changes? that would be great. if not I will try to apply them manually later. thanks, Andreas ___ opensc-devel mailing list opensc-devel@lists.opensc-project

[opensc-devel] Cardos sign modifes

2007-07-17 Thread Dmitry
Some time ago I tests Cardos SC_CARD_TYPE_CARDOS_M4_3, with atr: 3b:f2:18:00:02:c1:0a:31:fe:58:c8:08:74 Sign fails on final transmit of sign adpu. I analyzed adpu winscard.dll log of SmartTrustPersonal, which CSP sign correctly. And found that it use other way of sign throw adpu: 00 2A 80 86 ...