Jakob Bohm a écrit :

1. When I try to install the applet using gpshell, the card refuses the
"load" command with error 6A80 ("invalid data").

if the CAP file format is valid (meaning a flat one and not
he JAR format generated by SUN tools), the error can be due
to a package referenced by the applet and not present in the
card runtime, or present with a lower version than requested.
note that these versions come from the export files used to
generate the CAP, so you should NOT use the lastest JVC DevKit
(and thus use the 2.2 instead of 2.2.2) to avoid these mistakes.

2.4 CardEdge.src does not compile with the JavaCard 2.1.1 kit due to a small
bug in the addition of Extended APDU support.  Here is my patch:

     private void ComputeCrypt(APDU apdu, byte[] apduBuffer) {
        byte[] buffer = apduBuffer;
+#ifdef WITH_EXT_APDU   
        short dataOffset = apdu.getOffsetCdata();
-#ifdef WITH_EXT_APDU   
        short LC = apdu.getIncomingLength();
short bytesLeft = apdu.setIncomingAndReceive();

this is INVALID. according SUN specification, getIncomingLength
& getOffsetCdata can be used only AFTER a call to setIncomingAndReceive.

Sylvain.


_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to