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] Oops, wrong commit (my fault)

2010-08-20 Thread Emanuele Pucciarelli
Hello everyone, > Second, if the functioning of opensc-explorer will not change without extra > options, it is a nice addition. > Adding a long option ("--mf"?) together with documentation would be nice. I'd > use -m short option instead of -f (which many other utilities use for > filesystem ba

[opensc-devel] use algorithm_ref in set_security_env

2010-08-20 Thread Andre Zepezauer
Hello, attached is a patch which makes it possible to explicitly request specific algorithms for the cryptographic operations. The advantage is, that if the token provides sufficient information about itself, then the driver is not required to do any guess work. Which in turn could result in a mor

Re: [opensc-devel] SC_SEC_ENV_KEY_REF_ASYMMETRIC

2010-08-20 Thread Andre Zepezauer
Hello Martin, On Fri, 2010-08-20 at 11:02 +0300, Martin Paljak wrote: > Hello, > On Aug 20, 2010, at 2:02 AM, Andre Zepezauer wrote: > > 1. Fix the SC_SEC_ENV_KEY_REF_ASYMMETRIC magic > > See how this flag is used and where it is set! > I don't see it being set anywhere and only used in a few se

Re: [opensc-devel] SC_SEC_ENV_KEY_REF_ASYMMETRIC

2010-08-20 Thread Martin Paljak
Hello, On Aug 20, 2010, at 2:02 AM, Andre Zepezauer wrote: > 1. Fix the SC_SEC_ENV_KEY_REF_ASYMMETRIC magic > See how this flag is used and where it is set! I don't see it being set anywhere and only used in a few set_security_env functions, incl iso7816.c, and most uses being direct copypaste o