5 Replies Latest reply: May 13, 2011 10:35 PM by safarmer RSS

    Which are the keys for JCOP31C232 used in command "init-update"

    858271
      Hi,
      I've got a Java Card kit with cards JCOP31-36. I installed the plug-in for eclipse and the JavaCard simulator is working OK.
      The problem appears when I tried to load the applet into the card (JCOP31-36).
      It seem the card has a different key (0x01) and command "init-update 255" fails(See trace bellow).
      I suppose I need a new set of keys for command "set-key". Am I correct?
      What is the value for key index 0x01?

      This is the trace:

      - /term "winscard:4|SCM Microsystems Inc. SCR33x USB Smart Card Reader 0"
      --Opening terminal
      /card -a a000000003000000 -c com.ibm.jc.CardManager
      resetCard with timeout: 0 (ms)
      --Waiting for card...
      ATR=3B FA 18 00 00 81 31 FE 45 4A 43 4F 50 33 31 56 ;.....1.EJCOP31V
      32 33 32 98 232.
      IOCTL().
      ATR:
      T = 1
      => 00 A4 04 00 08 A0 00 00 00 03 00 00 00 00 ..............
      (23365 usec)
      <= 6F 65 84 08 A0 00 00 00 03 00 00 00 A5 59 9F 65 oe...........Y.e
      01 FF 9F 6E 06 47 91 73 51 2E 00 73 4A 06 07 2A ...n.G.sQ..sJ..*
      86 48 86 FC 6B 01 60 0C 06 0A 2A 86 48 86 FC 6B .H..k.`...*.H..k
      02 02 01 01 63 09 06 07 2A 86 48 86 FC 6B 03 64 ....c...*.H..k.d
      0B 06 09 2A 86 48 86 FC 6B 04 02 15 65 0B 06 09 ...*.H..k...e...
      2B 85 10 86 48 64 02 01 03 66 0C 06 0A 2B 06 01 +...Hd...f...+..
      04 01 2A 02 6E 01 02 90 00 ..*.n....
      Status: No Error
      cm> set-key 255/1/DES-ECB/404142434445464748494a4b4c4d4e4f 255/2/DES-ECB/404142434445464748494a4b4c4d4e4f 255/3/DES-ECB/404142434445464748494a4b4c4d4e4f
      cm> init-update 255
      => 80 50 00 00 08 D8 B1 C8 1B 70 E4 C3 E0 00 .P.......p....
      (47564 usec)
      <= 00 00 10 16 00 05 43 95 46 42 *01* 02 00 01 6C 7F ......C.FB....l.
      FC 11 3F B9 A6 1A 37 2A 7F F0 70 BC 90 00 ..?...7*..p...
      Status: No Error
      jcshell: Error code: -8 (Failed (no diagnosis))
      jcshell: Command failed: No such key: 1/1
      Unexpected error; aborting execution