[Muscle] OT: Global Platform queries?

2008-02-18 Thread Geoff Elgey
G'day, Perhaps off-topic, but: if I wanted to implement a Global Platform specification, where would I go for finding out further information? Specifically, I'm trying to understand the interation of logical channels and secure messaging and various (SELECT, GET RESPONSE, MANAGE CHANNEL) comman

[Muscle] SELECT, GET RESPONSE, and pcsc-lite

2008-02-10 Thread Geoff Elgey
G'day, I am investigating writing a card applet, and using pcsc-lite to communicate to the card. My understanding of the calling stack is as follows: application -> pcsc-lite -> ccid -> reader -> card -> applet I am interested in how to handle the ISO7816-4 SELECT command. For T0 protocol,

RE: [Muscle] IFD_POWER_UP and IFD_POWER_DOWN actions inIFDHPowerICC()function?

2007-08-06 Thread Geoff Elgey
G'day, > You are using a PKCS#11 library with a memory card? So all > the crypto is done in software by the PC and the private > keys are read from the memory card? Strange idea :-) The memory card is for unit testing a PKCS#11 implementation that uses pcsclite. > I have no idea how to use a m

RE: [Muscle] IFD_POWER_UP and IFD_POWER_DOWN actions inIFDHPowerICC() function?

2007-08-05 Thread Geoff Elgey
SCLE Subject: Re: [Muscle] IFD_POWER_UP and IFD_POWER_DOWN actions inIFDHPowerICC() function? On 20/07/07, Geoff Elgey <[EMAIL PROTECTED]> wrote: > G'day, Hello, > I've written a IFD handler for a memory card, but I am now wondering > if I am handling the IFDHPowerICC() function

[Muscle] IFD_POWER_UP and IFD_POWER_DOWN actions in IFDHPowerICC() function?

2007-07-19 Thread Geoff Elgey
G'day, I've written a IFD handler for a memory card, but I am now wondering if I am handling the IFDHPowerICC() function correctly. The function documentation defines the 'action' parameter as follows: * IFD_POWER_UP Power and reset the card if not done so * IFD_POWER_DOWN

RE: [Muscle] ifd-handler implementations without USB?

2007-07-01 Thread Geoff Elgey
G'day, > You can start with the PC/SC Driver Developers Kit from [3]. Thanks for the information about the PC/SC Driver Developers Kit. Creating a serial driver that accesses a memory card is a good solution. > [3] http://musclecard.com/sourcedrivers.html Thanks for the link, but is there a new

[Muscle] ifd-handler implementations without USB?

2007-06-30 Thread Geoff Elgey
G'day, I wanted to test some PKCS#11 libraries that talk to a Common Access Card (CAC) via PC/SC. So I wrote my own implementation of the PC/SC interface, whose basic function was to emulate the CAC APDU handling in the SCardTransmit() function. So the APDUs that would normally be routed by PC

RE: [Muscle] Card reset and SCardReconnect

2007-04-26 Thread Geoff Elgey
> I'm using pcsc-lite to communicate with a smartcard. I have a question > about "card reset" and reconnecting. Okay -- I read the documentation and figured this out. -- Geoff <>___ Muscle mailing list Muscle@lists.musclecard.com http://list

[Muscle] Card reset and SCardReconnect

2007-04-25 Thread Geoff Elgey
G'day, I'm using pcsc-lite to communicate with a smartcard. I have a question about "card reset" and reconnecting. I use SCardConnect() to open an exclusive connection to the card. I perform my operations, then call SCardDisconnect() when done. But according to the pcsc-lite documentat

RE: CAC without musclecard (was: Re: [Muscle] RE: CAC andmusclecardframework)

2006-07-19 Thread Geoff Elgey
G'day, > Now there's another player in the PKCS#11 module space: > > http://directory.fedora.redhat.com/wiki/CoolKey > > I *just* checked this out of CVS, compiled it, and installed > it in Firefox and it worked without a problem. > > This is using PCSC-lite directly, without the Musclecard

RE: [Muscle] CAC, musclepkcs11, and session closing.

2006-07-07 Thread Geoff Elgey
G'day, > But with pam_pkcs11 and Geoff Elgey's session > pkcs11 tester I snagged from this list's archives, I'm seeing > a segfault when the session is closed. I can't recall the code mentioned above, but it's very possible that something quickly written as an example to a mailing list could be

Re: [Muscle] Context handles and pcscd?

2006-07-07 Thread Geoff Elgey
Title: Re: [Muscle] Context handles and pcscd? G'day, >> If pcscd is restarted, SCardListReaders() and SCardGetStatusChange() >> still act as before: zero readers are returned, and both functions >> return SCARD_S_SUCCESS. > > I tried to reproduce the bug but I get a SCARD_E_NO_SERVICE error