4 Replies Latest reply: Mar 7, 2012 9:11 AM by 801926 RSS

    Biometry Sample Problem on JCOP v2.4.1 R3

    921843
      Hi,

      I find some errors on running JCOP v2.4.1 R3 simulation of biometry sample included on JC 2.2.2 Dev Kit by using Eclipse. The CAP file has been produced but cannot upload like following session.

      -----
      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 19 52 78 8C 9C 5A 0D 62 00 .P....Rx..Z.b.
      (4531 usec)
      <= 00 00 DE 81 34 18 39 B7 09 70 FF 02 00 00 3D 02 ....4.9..p....=.
      9C 31 C7 89 E5 7F 86 4B FE 01 55 DA 90 00 .1.....K..U...
      Status: No Error
      cm> ext-auth plain
      => 84 82 00 00 10 12 F2 5E 0E 56 EC 74 C3 1F D9 BD .......^.V.t....
      28 6B 7B 9D F7 (k{..
      (10955 usec)
      <= 90 00 ..
      Status: No Error
      cm> delete -r a00000006203010c0f02
      => 80 E4 00 80 0C 4F 0A A0 00 00 00 62 03 01 0C 0F .....O.....b....
      02 00 ..
      (1994 usec)
      <= 6A 88 j.
      Status: Reference data not found
      jcshell: Error code: 6a88 (Reference data not found)
      jcshell: Wrong response APDU: 6A88
      Ignoring expected error
      cm> delete -r a00000006203010c0f01
      => 80 E4 00 80 0C 4F 0A A0 00 00 00 62 03 01 0C 0F .....O.....b....
      01 00 ..
      (1264 usec)
      <= 6A 88 j.
      Status: Reference data not found
      jcshell: Error code: 6a88 (Reference data not found)
      jcshell: Wrong response APDU: 6A88
      Ignoring expected error
      cm> upload -c -b 250 "C:\Downloads\Eclipse\workspace\Biometry\bin\com\sun\javacard\samples\biometry\bioServer\javacard\bioServer.cap"
      => 80 E6 02 00 17 0A A0 00 00 00 62 03 01 0C 0F 01 ..........b.....
      08 A0 00 00 00 03 00 00 00 00 00 00 00 .............
      (2812 usec)
      <= 00 90 00 ...
      Status: No Error
      Start loading Header.cap (71 byte)
      => 80 E8 00 00 47 C4 82 02 2F 01 00 40 DE CA FF ED ....G.../..@....
      02 02 04 00 01 0A A0 00 00 00 62 03 01 0C 0F 01 ..........b.....
      2B 63 6F 6D 2F 73 75 6E 2F 6A 61 76 61 63 61 72 +com/sun/javacar
      64 2F 73 61 6D 70 6C 65 73 2F 62 69 6F 6D 65 74 d/samples/biomet
      72 79 2F 62 69 6F 53 65 72 76 65 72 00 ry/bioServer.
      (2532 usec)
      <= 00 90 00 ...
      Status: No Error
      Header.cap loaded (71 byte)
      Start loading Directory.cap (36 byte)
      => 80 E8 00 01 24 02 00 21 00 40 00 21 00 0F 00 15 ....$..!.@.!....
      00 36 00 41 00 E7 00 0A 00 27 00 00 01 08 06 DE .6.A.....'......
      00 00 00 00 00 00 02 01 00 00 ..........
      (2914 usec)
      <= 00 90 00 ...
      Status: No Error
      Directory.cap loaded (36 byte)
      Start loading Import.cap (24 byte)
      => 80 E8 00 02 18 04 00 15 02 03 01 07 A0 00 00 00 ................
      62 01 01 02 01 07 A0 00 00 00 62 02 02 00 b.........b...
      (4714 usec)
      <= 6A 80 j.
      Status: Wrong data
      jcshell: Error code: 6a80 (Wrong data)
      jcshell: Wrong response APDU: 6A80
      Unexpected error; aborting execution
      -----

      This error is exactly same when I'm using the real NXP JCOP v2.4.1 R3 card (J3A040). What's wrong with this? I have not do any editing, just import the .java files from Dev Kit into Eclipse workspace.

      Best regards,