Re: [opensc-devel] New Italian CNS/eID patch

2010-12-12 Thread Andre Zepezauer
On Sun, 2010-08-15 at 12:56 +0200, Emanuele Pucciarelli wrote: > Greetings, > > I have uploaded a new, updated patch for Italian CNS support against > the current trunk: > > http://www.opensc-project.org/opensc/attachment/ticket/177/itacns-patch3.diff > > Now all Secure Messaging bits are comple

Re: [opensc-devel] New Italian CNS/eID patch

2010-08-30 Thread Martin Paljak
On Aug 27, 2010, at 12:55 PM, Andre Zepezauer wrote: > On Fri, 2010-08-27 at 11:12 +0300, Martin Paljak wrote: >> Hello, >> >> On Aug 26, 2010, at 6:34 PM, Andre Zepezauer wrote: >>> One application for the give_random() function is contained in the >>> attached patch. In short: C_SeedRandom() w

Re: [opensc-devel] New Italian CNS/eID patch

2010-08-27 Thread Andre Zepezauer
On Fri, 2010-08-27 at 11:12 +0300, Martin Paljak wrote: > Hello, > > On Aug 26, 2010, at 6:34 PM, Andre Zepezauer wrote: > > One application for the give_random() function is contained in the > > attached patch. In short: C_SeedRandom() works fine with CardOS. Would > > be interesting if the the o

Re: [opensc-devel] New Italian CNS/eID patch

2010-08-27 Thread Martin Paljak
Hello, On Aug 26, 2010, at 6:34 PM, Andre Zepezauer wrote: > One application for the give_random() function is contained in the > attached patch. In short: C_SeedRandom() works fine with CardOS. Would > be interesting if the the other drivers will like it too. I don't see anything in the ETSI doc

Re: [opensc-devel] New Italian CNS/eID patch

2010-08-26 Thread Andre Zepezauer
On Tue, 2010-08-17 at 10:08 +0300, Martin Paljak wrote: > Helo, > > On Aug 17, 2010, at 1:59 AM, Andre Zepezauer wrote: > > On Mon, 2010-08-16 at 21:10 +0200, Emanuele Pucciarelli wrote: > >>> @martin: When you are interested in improving iso7816.c, then rewrite > >>> the select_file function. It

Re: [opensc-devel] New Italian CNS/eID patch

2010-08-20 Thread Emanuele Pucciarelli
Hello! > What's the response to the select commands. Please can you post one. > Contains it something like that: A5:07:9F:65:04:02:02:01:01 > Important are the tags A5 and 9F65. If they are present, then it is most > likely that your card is a GlobalPlatform one. Redacted for brevity/clarity: AT

Re: [opensc-devel] New Italian CNS/eID patch

2010-08-20 Thread Andre Zepezauer
Hello Emanuele, On Sat, 2010-08-21 at 01:27 +0200, Emanuele Pucciarelli wrote: > On Tue, Aug 17, 2010 at 17:52, Andre Zepezauer > wrote: > > [about improving SELECT FILE in iso7816.c] > > > It would be nice, if the driver could be configured in a way to support > > such a scenario. The bits res

Re: [opensc-devel] New Italian CNS/eID patch

2010-08-20 Thread Emanuele Pucciarelli
On Tue, Aug 17, 2010 at 17:52, Andre Zepezauer wrote: [about improving SELECT FILE in iso7816.c] > It would be nice, if the driver could be configured in a way to support > such a scenario. The bits responsible for card detection should be > placed in a function not part of the driver. FWIW, ju

Re: [opensc-devel] New Italian CNS/eID patch

2010-08-18 Thread Martin Paljak
Hello, On Aug 17, 2010, at 7:20 PM, Andre Zepezauer wrote: > On Tue, 2010-08-17 at 10:08 +0300, Martin Paljak wrote: >> For example, try to explain why the ISO GET CHALLENGE code from year 2001 >> reads the random from the card in 8 byte chunks? > > Because it's the most generic solution, that w

Re: [opensc-devel] New Italian CNS/eID patch

2010-08-17 Thread Andre Zepezauer
On Tue, 2010-08-17 at 10:08 +0300, Martin Paljak wrote: > Helo, > > On Aug 17, 2010, at 1:59 AM, Andre Zepezauer wrote: > > On Mon, 2010-08-16 at 21:10 +0200, Emanuele Pucciarelli wrote: > >>> @martin: When you are interested in improving iso7816.c, then rewrite > >>> the select_file function. It

Re: [opensc-devel] New Italian CNS/eID patch

2010-08-17 Thread Andre Zepezauer
On Tue, 2010-08-17 at 16:02 +0200, Emanuele Pucciarelli wrote: > On Tue, Aug 17, 2010 at 03:07, Andre Zepezauer > wrote: > > > Cards which comply with chapter "9 Application-independent card > > services" of 7816-4 must implement 1,2,4. The preferred values used by > > the iso driver are 0,8,9. >

Re: [opensc-devel] New Italian CNS/eID patch

2010-08-17 Thread Emanuele Pucciarelli
On Tue, Aug 17, 2010 at 03:07, Andre Zepezauer wrote: > Cards which comply with chapter "9 Application-independent card > services" of 7816-4 must implement 1,2,4. The preferred values used by > the iso driver are 0,8,9. Now I think I see what you are after. :) So, you'd like the iso7816 driver

Re: [opensc-devel] New Italian CNS/eID patch

2010-08-17 Thread Martin Paljak
Helo, On Aug 17, 2010, at 1:59 AM, Andre Zepezauer wrote: > On Mon, 2010-08-16 at 21:10 +0200, Emanuele Pucciarelli wrote: >>> @martin: When you are interested in improving iso7816.c, then rewrite >>> the select_file function. It is not very generic. For example it won't >>> work for my german deb

Re: [opensc-devel] New Italian CNS/eID patch

2010-08-16 Thread Andre Zepezauer
On Tue, 2010-08-17 at 02:08 +0200, Emanuele Pucciarelli wrote: > On Tue, Aug 17, 2010 at 00:59, Andre Zepezauer > This particular card isn't important at all. But it shows, that the > > select_file function doesn't work for an iso card. I had to write code, > > to read the contents of this one. Bu

Re: [opensc-devel] New Italian CNS/eID patch

2010-08-16 Thread Emanuele Pucciarelli
On Tue, Aug 17, 2010 at 00:59, Andre Zepezauer This particular card isn't important at all. But it shows, that the > select_file function doesn't work for an iso card. I had to write code, > to read the contents of this one. But I really would like to use > opensc-explorer for such a task. For exa

Re: [opensc-devel] New Italian CNS/eID patch

2010-08-16 Thread Andre Zepezauer
On Mon, 2010-08-16 at 21:10 +0200, Emanuele Pucciarelli wrote: > Hi Andre! > > Thanks for the remarks! > > > It works very well, right now. I have a modified cardos driver, which > > uses both functions (signing and decipherment from iso7816.c) with keys > > of 2048 bit. Seems to me, that there i

Re: [opensc-devel] New Italian CNS/eID patch

2010-08-16 Thread Emanuele Pucciarelli
Hi Andre! Thanks for the remarks! > It works very well, right now. I have a modified cardos driver, which > uses both functions (signing and decipherment from iso7816.c) with keys > of 2048 bit. Seems to me, that there is nothing to be done here. Good to hear. Are you using reader-pcsc? > @mart

Re: [opensc-devel] New Italian CNS/eID patch

2010-08-16 Thread Andre Zepezauer
On Sun, 2010-08-15 at 17:11 +0300, Martin Paljak wrote: > On Aug 15, 2010, at 4:21 PM, Emanuele Pucciarelli wrote: > > On Sun, Aug 15, 2010 at 13:45, Martin Paljak wrote: > >> iso7816.c should not be taken as a final, static code, if there are checks > >> missing from there, it is OK to improve i

Re: [opensc-devel] New Italian CNS/eID patch

2010-08-15 Thread Martin Paljak
On Aug 15, 2010, at 4:21 PM, Emanuele Pucciarelli wrote: > On Sun, Aug 15, 2010 at 13:45, Martin Paljak wrote: >> iso7816.c should not be taken as a final, static code, if there are checks >> missing from there, it is OK to improve iso7816.c as well :) > > I think that the checks already in pla

Re: [opensc-devel] New Italian CNS/eID patch

2010-08-15 Thread Emanuele Pucciarelli
On Sun, Aug 15, 2010 at 13:45, Martin Paljak wrote: > Great! IMO that's good to go, I have only one small comment: >  * Do I miss something or does the itacns_compute_signature -> > do_compute_signature chain translate almost 1:1 to iso7816_compute_signature > with an additional check in itacns

Re: [opensc-devel] New Italian CNS/eID patch

2010-08-15 Thread Martin Paljak
Hello, On Aug 15, 2010, at 1:56 PM, Emanuele Pucciarelli wrote: > I have uploaded a new, updated patch for Italian CNS support against > the current trunk: > > http://www.opensc-project.org/opensc/attachment/ticket/177/itacns-patch3.diff Great! IMO that's good to go, I have only one small comment

[opensc-devel] New Italian CNS/eID patch

2010-08-15 Thread Emanuele Pucciarelli
Greetings, I have uploaded a new, updated patch for Italian CNS support against the current trunk: http://www.opensc-project.org/opensc/attachment/ticket/177/itacns-patch3.diff Now all Secure Messaging bits are completely out (I'm working on that separately) and there is only a tiny bit of dead