Can not unlock Card Mannager even with Correct key and correct card using GP, but same key unlocks same card using different software. I am using OpenScp01 to unlock the card.
I have added the APDU log file where I unlock the card be low the stars in the message below
Can someone please give me advice how to "configure" the GP exe correctly?
Command File : C:\PCom32_6.0\IDONE\IDONE_Select.cmd
Logging File : C:\PCom32_6.0\Logs\IDONE_Select.L55
Date : 30 October 2015 at 13h25 45s
Version : PCOM32 Version 6.4.3.3
Reader Name : BROADCOM CORP CONTACTED SMARTCARD 0
HubReader : C:\Windows\system32\HubReader.dll Version 1.9.0.0
IFDEF values :
0001 : .LIST_ON
0002 : .LOAD CALCUL.DLL
Dll Calcul chargรฉe Version: 4,13,0,0
using C:\PCom32_6.0\Crypto.DLL version: 4.13.0.0
using C:\PCom32_6.0\calcul.dll version: 4, 13, 0, 0
0003 :
0004 : .DEFINE %KMC 203F19CDD7D219787CBC4A8E1234D62E
%KMC : 20 3F 19 CD D7 D2 19 78 7C BC 4A 8E 12 34 D6 2E
0005 : .DEFINE %KMC_VERSION 01
0006 :
0007 :
0008 :
0009 :
0010 : .INSERT
0011 :
0012 :
0013 : .POWER_ON
Command : POWER_ON
Output Data : 00 31 C0 64 3F 68 01 04 07
Status : 90 00
0014 : *00A4040008A000000003000000 (9000,61XX)
0015 :
0016 :
0017 : *.CALL OpenScp01.pcom /LIST_OFF
0018 :
0019 : 00A4040008A000000003000000 (61xx,9000)
Command : 00 A4 04 00 08
Input Data : A0 00 00 00 03 00 00 00
Output Data : none
Status : 61 3F
0020 :
0021 : ;.LIST_OFF
0022 :
0023 : .CALL OpenScp01.pcom /LIST_ON
Called File : C:\PCom32_6.0\IDONE\OpenScp01.pcom
0001 :
0002 : .LIST_ON
0003 :
0004 : .UNDEFINE %DIV
0005 : .UNDEFINE %KS_SEK
0006 : .UNDEFINE %KS_SMK
0007 : .UNDEFINE %KS_KEK
0008 : .UNDEFINE %ENC_KEY
0009 :
0010 :
0011 : 80 50 00 00 08 1122334455667788 (61 1C)
Command : 80 50 00 00 08
Input Data : 11 22 33 44 55 66 77 88
Output Data : none
Status : 61 1C
0012 : 00 C0 00 00 1C (90 00)
Command : 00 C0 00 00 1C
Output Data : FF 40 43 06 00 00 30 07 00 90 01 01 32 06 52 E4
: D4 52 8C 7B CF 52 DA 0B CA 19 7D D9
Status : 90 00
0013 :
0014 : .SET_BUFFER K R
Buffer K : FF 40 43 06 00 00 30 07 00 90 01 01 32 06 52 E4
: D4 52 8C 7B CF 52 DA 0B CA 19 7D D9
0015 : .SET_BUFFER H 1122334455667788
Buffer H : 11 22 33 44 55 66 77 88
0016 :
0017 : .DEFINE %DIV K(5;6)
0018 : .SET_BUFFER O K(13;8) * card challenge
Buffer O : 32 06 52 E4 D4 52 8C 7B
0019 : ;.DEFINE %DIV 0000 R(5;4)
0020 : ;.DEFINE %DIV R(5;6)
0021 : ;.SET_BUFFER O R(13;8) * card challenge
0022 :
0023 : * compute KDCenc
0024 : .SET_DATA %DIV F001 %DIV 0F01
*** DATA UPDATED ***
0025 : .SET_KEY %KMC
*** KEY UPDATED ***
Key = 203F19CDD7D219787CBC4A8E1234D62E
0026 : .DES3 I 00
*** DES3 PROCESSED ***
0027 : .DEFINE %KS_SEK I
%KS_SEK : 9F A4 16 DC 8C DE 1E 2E 76 8D AC 07 7B A8 9D 77
0028 : * compute KDCmac
0029 : .SET_DATA %DIV F002 %DIV 0F02
*** DATA UPDATED ***
0030 : .SET_KEY %KMC
*** KEY UPDATED ***
Key = 203F19CDD7D219787CBC4A8E1234D62E
0031 : .DES3 J 00
*** DES3 PROCESSED ***
0032 : .DEFINE %KS_SMK J
%KS_SMK : A8 87 7C 70 07 FB 00 6F 12 7B F3 4A C1 94 2B 02
0033 : * compute KDCkek
0034 : .SET_DATA %DIV F003 %DIV 0F03
*** DATA UPDATED ***
0035 : .SET_KEY %KMC
*** KEY UPDATED ***
Key = 203F19CDD7D219787CBC4A8E1234D62E
0036 : .DES3 K 00
*** DES3 PROCESSED ***
0037 : .DEFINE %KS_KEK K
%KS_KEK : 93 75 A0 97 C4 C2 AE D4 FF 8A 40 29 25 D6 11 FA
0038 :
0039 :
0040 :
0041 : * compute authentication/encryption session key
0042 : .SET_DATA O(5:8) H(1:4) O(1:4) H(5:8)
*** DATA UPDATED ***
0043 : .SET_VECT_INI 0000000000000000
*** INIT VECTOR UPDATED ***
0044 : .SET_KEY I
*** KEY UPDATED ***
Key = 9FA416DC8CDE1E2E768DAC077BA89D77
0045 : .DES3 I 80
*** DES3 PROCESSED ***
0046 :
0047 : .DEFINE %ENC_KEY I
%ENC_KEY : 62 C9 70 7E 8F A1 41 18 4F EC 9E 6A D2 B5 3C C8
0048 :
0049 : * compute mac session key
0050 : .SET_DATA O(5:8) H(1:4) O(1:4) H(5:8)
*** DATA UPDATED ***
0051 : .SET_VECT_INI 0000000000000000
*** INIT VECTOR UPDATED ***
0052 : .SET_KEY J
*** KEY UPDATED ***
Key = A8877C7007FB006F127BF34AC1942B02
0053 : .DES3 J 80
*** DES3 PROCESSED ***
0054 : * compute host cryptogram
0055 : .SET_DATA O H
*** DATA UPDATED ***
0056 : .SET_VECT_INI 0000000000000000
*** INIT VECTOR UPDATED ***
0057 : .SET_KEY I
*** KEY UPDATED ***
Key = 62C9707E8FA141184FEC9E6AD2B53CC8
0058 : .MAC33 O 80 /P
*** MAC33 PROCESSED ***
0059 : * compute command MAC
0060 : .SET_DATA 84 82 00 00 10 O
*** DATA UPDATED ***
0061 : .SET_VECT_INI 0000000000000000
*** INIT VECTOR UPDATED ***
0062 : .SET_KEY J
*** KEY UPDATED ***
Key = 629C33A1B61C01DC9CFE621BEDFA94C5
0063 : .MAC33 M 80 /P
*** MAC33 PROCESSED ***
0064 :
0065 :
0066 : .LIST_ON
0067 :
0068 : ;* External Authenticate
0069 : 84 82 00 00 10 O M (90 00)
Command : 84 82 00 00 10
Input Data : C7 26 01 65 76 13 95 D3 05 C8 0C CD 57 5A 47 39
Output Data : none
Status : 90 00
0070 : ;;.LIST_OFF
***************************************************************
* CALL RESULT
* Filename: OpenScp01.pcom
***************************************************************
* NORMAL EXECUTION
***************************************************************
In 639 ms
***************************************************************
0024 :
0025 : .LIST_ON
0026 : ;80 E2 80 00 0B 9F66081145313403000000 (61xx,9000)
0027 : ;DEBUG: Command APDU:
0028 : ;80 E6 0C 00 29 0A 01020304050607080900 0B 0102030405060708090000 0B 0102030405060708090000 010002 C9 00 00
0029 :
0030 : ;80 E6 0C 00 10 A0000000770100000A10100000000001 10 A0000000770100000A10100100000001 0B A0000000770100000A1010 C9 12 FF0101010201030204020502060207020B0A 0000(61xx,9000)
0031 : ;84 E6 0C 00 64 10 A0000000185000000000000052414450 10 A0000000185000000000000052414441 10 A0000000185000000000000052414441 010025EF21C7020000C8020000CA170100FF0014070101020203030404050506060707000000 C9 00002440FDBAF2A0127F00 9000
0032 : ;80 E6 0C 00 10 A0000000770100000A10100000000001 10 A0000000770100000A10100100000001 09 A00000007741010101 C9 12 FF0101010201030204020502060207020B0A 0000 (61xx,9000)
0033 : ;00 A4 04 0C <?> A00000007741010101 (61xx,9000)
0034 :
0035 :
0036 : .POWER_OFF
0037 :
0038 :
0039 : ;80E60200 1D 10 A0000000770100000210000000000018 08 A00000000300000000000000(9000)
0040 : ;80E80000 21 C481CE01001ADECAFFED0102020101 10 A0000000770100000210000000000018 0200 (9000)
0041 : ;80E60C0046 10 A0000000770106000120000000000008 10 A0000000770106000120000100000008 0B A0000000041010D71003010 C9 12 FF0101010201030204020502060207020B0A 0000 (61xx,9000)
0042 : ;84 E6 0C 00 64 10 A0 00 00 00 18 50 00 00 00 00 00 00 52 41 44 50 10 A0 00 00 00 18 50 00 00 00 00 00 00 52 41 44 41 10 A0 00 00 00 18 50 00 00 00 00 00 00 52 41 44 41 01 00 25 EF 21 C7 02 00 00 C8 02 00 00 CA 17 01 00 FF 00 14 07 01 01 02 02 03 03 04 04 05 05 06 06 07 07 00 00 00 C9 00 00 24 40 FD BA F2 A0 12 7F (00)
0043 : ;00, 90 00 y ymm,8.8888888888888888888888888888888888888888888888888888ii8u
*********************************
* FILE PROCESSING RESULT : *
* *
* NORMAL EXECUTION *
* *
*********************************