Re: Cyberflex

Tommaso Cucinotta <[email protected]>
Newsgroups gmane.comp.lib.muscle
Message-ID <[email protected]>
On 06/03/14 08:52, wully wrote:
> Egregio Dr. Cucinotta
> 
> I had some other impegno, so I have only today restarted my analysis of SC.

Hmmm...., this looks like coming from an Italian to me :-)...

> Here is, what I have found by analysing the source code (!) of libmuslecard-1.3.6.
> 
> As you pointed out, there needs to be some information in /usr/local/pcsc/services/
> The information has to be contained in subdirectories called *.bundle, which contain
> a subdir called 'Contents'. There, one has to have at least a file called 'info.plist'.
> (In my system, there was no directory, so no information).

In addition to the libmusclecard, that includes the general MuscleCard framework, you need
to install the plugin for a JavaCard with a MuscleCard Applet onboard.

So, for example, you can get such plugin from here:

  http://anonscm.debian.org/viewvc/muscleplugins/trunk/
  http://anonscm.debian.org/viewvc/muscleplugins/trunk/MCardPlugin/

AFAICR, the debian repo was the one containing the most coherent version of the various
components. After compiling the plugin, you can run the included installBundle script
that installs the bundle under /usr/local/pcsc/services/ and then you get the plugin
loaded.

> But according to the source 'tokenfactory.c', routine 'LTPBundleFindValueWithKey' there must be information about
> 
> - atr
> - AID

AFAICR, the Info.plist can contain multiple ATRs, because each different card type (and
sometimes also different versions of the same card model) provides a different one. So
you can add the one(s) of your card(s) there.

Concerning AID, I can't really remember, except that perhaps the plugin expects a statically
prefixed AID, to SELECT it and use it, and you need to use the same when installing the
MuscleCard Applet on the card.

Hopefully this will help you a bit more ? And, analysis of source-code is always the best
thing to do. We may be mistaken or fail to remember well, but in the code you'll see exactly
how it goes :-)!

Bye,

	T.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.