[Muscle] IFD_POWER_UP and IFD_POWER_DOWN actions inIFDHPowerICC()
function?
Ludovic Rousseau
ludovic.rousseau at gmail.com
Mon Aug 6 02:09:12 PDT 2007
On 06/08/07, Geoff Elgey <Geoff.Elgey at quest.com> wrote:
> One thing that interests me, however is the following note in the
> documentation regarding memory cards:
>
> "Memory cards without an ATR should return IFD_SUCCESS on reset but
> the Atr should be zeroed and the length should be zero"
>
> Is an empty ATR only returned on IFD_RESET? What about on IFD_POWER_UP?
IFD_POWER_UP should report the same ATR as IFD_RESET.
> When I return a zero length ATR for IFD_POWER_UP, and use a PKCS#11
> library that calls pcsclite, then I get the following pcscd error
> message:
>
> "prothandler.c:109:PHSetProtocol() Protocol T=0 requested but
> unsupported by the card"
>
> I need to use a valid ATR here to get the PKCS#11 library to function
> with my ifdhandler.
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 :-)
I have no idea how to use a memory card with pcsc-lite. If returning a
faked (non-null) ATR works for you then go on.
Bye
--
Dr. Ludovic Rousseau
More information about the Muscle
mailing list