Closed l1980 closed 3 years ago
Got the same issue. With Idemia cosmo 8.2 Any fix ?
Press the "Sponsor" button for motivation for a quicker fix ;(
If I specifie enc, mac and dek key, it's ok, but if I use Master Key, no diversification even if I use -kdf3 option.
I hear you. Expect some activity on this over the weekend/next week.
Thank you.
gp -key KDF3:0E2B4A53DE24D12250908CFE99E3E2573CE63F5224586D30F6AA42C7F9ABB938
does the trick. I'll leave this open as the CLI should indicate that -kdf3 is a deprecated option and also update the documentation accordingly
Hi, Thank you.
I tried but I still have issue :
with that :
gp.exe -liv -key KDF3:101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F
It answer me : GlobalPlatformPro v20.01.23-0-g5ad373b Running on Windows 10 10.0 amd64, Java 15.0.2 by Oracle Corporation
[ ] Generic Smart Card Reader Interface 0 [] OT MicroSD smartcard Reader 1 SCardConnect("OT MicroSD smartcard Reader 1", T=) -> T=1, 3BDB960081B1FE451F8312340000000000000F9000E3 SCardBeginTransaction("OT MicroSD smartcard Reader 1") Reader: OT MicroSD smartcard Reader 1 ATR: 3BDB960081B1FE451F8312340000000000000F9000E3 More information about your card: http://smartcard-atr.appspot.com/parse?ATR=3BDB960081B1FE451F8312340000000000000F9000E3
A>> T=1 (4+0000) 00A40400 00 A<< (0066+2) (56ms) 6F408407A0000001510000A535732F06072A864886FC6B01600C060A2A864886FC6B02020201630906072A864886FC6B03640B06092A864886FC6B0403609F6501FF 9000 [TRACE] GPSession - [6F] [TRACE] GPSession - [84] A0000001510000 [TRACE] GPSession - [A5] [TRACE] GPSession - [73] [TRACE] GPSession - [06] 2A864886FC6B01 [TRACE] GPSession - [60] [TRACE] GPSession - [06] 2A864886FC6B02020201 [TRACE] GPSession - [63] [TRACE] GPSession - [06] 2A864886FC6B03 [TRACE] GPSession - [64] [TRACE] GPSession - [06] 2A864886FC6B040360 [TRACE] GPSession - [9F65] FF [DEBUG] GPSession - Auto-detected ISD: A0000001510000 [TRACE] GPData - GET DATA(CPLC) A>> T=1 (4+0000) 80CA9F7F 00 A<< (0045+2) (41ms) 9F7F2A47906B4882318222300E0185A800108A2900114210291143102911441029010000000000000000000000 9000 CPLC: ICFabricator=4790 ICType=6B48 OperatingSystemID=8231 OperatingSystemReleaseDate=8222 (2018-08-10) OperatingSystemReleaseLevel=300E ICFabricationDate=0185 (2010-07-04) ICSerialNumber=A800108A ICBatchIdentifier=2900 ICModuleFabricator=1142 ICModulePackagingDate=1029 (2011-01-29) ICCManufacturer=1143 ICEmbeddingDate=1029 (2011-01-29) ICPrePersonalizer=1144 ICPrePersonalizationEquipmentDate=1029 (2011-01-29) ICPrePersonalizationEquipmentID=01000000 ICPersonalizer=0000 ICPersonalizationDate=0000 (2010-01-01) ICPersonalizationEquipmentID=00000000
[TRACE] GPData - GET DATA(IIN) A>> T=1 (4+0000) 80CA0042 00 A<< (0000+2) (39ms) 6A88 [DEBUG] GPData - GET DATA(IIN): N/A [TRACE] GPData - GET DATA(CIN) A>> T=1 (4+0000) 80CA0045 00 A<< (0000+2) (83ms) 6A88 [DEBUG] GPData - GET DATA(CIN): N/A Card Data: [TRACE] GPData - GET DATA(Card Data) A>> T=1 (4+0000) 80CA0066 00 A<< (0051+2) (43ms) 6631732F06072A864886FC6B01600C060A2A864886FC6B02020201630906072A864886FC6B03640B06092A864886FC6B040360 9000 [TRACE] GPData - [66] [TRACE] GPData - [73] [TRACE] GPData - [06] 2A864886FC6B01 [TRACE] GPData - [60] [TRACE] GPData - [06] 2A864886FC6B02020201 [TRACE] GPData - [63] [TRACE] GPData - [06] 2A864886FC6B03 [TRACE] GPData - [64] [TRACE] GPData - [06] 2A864886FC6B040360 Tag 6: 1.2.840.114283.1 -> Global Platform card Tag 60: 1.2.840.114283.2.2.2.1 -> GP Version: 2.2.1 Tag 63: 1.2.840.114283.3 Tag 64: 1.2.840.114283.4.3.96 -> GP SCP03 i=60 Card Capabilities: [TRACE] GPData - GET DATA(Card Capabilities) A>> T=1 (4+0000) 80CA0067 00 A<< (0000+2) (46ms) 6A88 [DEBUG] GPData - GET DATA(Card Capabilities): N/A [TRACE] GPData - GET DATA(Key Info Template) A>> T=1 (4+0000) 80CA00E0 00 A<< (0020+2) (51ms) E012C00401018820C00402018820C00403018820 9000 [TRACE] GPKeyInfo - [E0] [TRACE] GPKeyInfo - [C0] 01018820 [TRACE] GPKeyInfo - [C0] 02018820 [TRACE] GPKeyInfo - [C0] 03018820 Version: 1 (0x01) ID: 1 (0x01) type: AES length: 32 (AES-256) Version: 1 (0x01) ID: 2 (0x02) type: AES length: 32 (AES-256) Version: 1 (0x01) ID: 3 (0x03) type: AES length: 32 (AES-256) SCardEndTransaction("OT MicroSD smartcard Reader 1") SCardDisconnect("OT MicroSD smartcard Reader 1", true) tx:35/rx:196 Exception in thread "main" java.lang.IllegalArgumentException: Illegal hex: K at apdu4j.HexUtils.decodeHexString_imp(HexUtils.java:58) at apdu4j.HexUtils.stringToBin(HexUtils.java:83) at pro.javacard.gp.GPTool.main(GPTool.java:266)
Now it's ok, i've rebuild with last sources and all works great. Thank you.
This regression was fixed with #257
When requesting KDF3 counter mode keys diversification, it appears GPPro does not diversify and takes static master key for ENC KEK DEK. Card is an IDEMIA Cosmo v9.0
Full log
Additional context
Add any other context about the problem here.