Forum › MIFARE SDK › Trying to read DESFire EV1 Card, requires Authentication. › Reply To: Trying to read DESFire EV1 Card, requires Authentication.
Hi,
Thanks. I read it.
My questions:
1
I don't understand the meaning of "format" and "set" in formatKeyEntry and setKey? Does it alter the card?
I know the application and the file. I have the AES key. I just want to authenticate to read the content.
2
I don't understand why I got
with
My key is 16 bytes long:
I
3
The post deals with AuthenticateAES, I just have Authenticate.
Best regards.
Thanks. I read it.
My questions:
1
I don't understand the meaning of "format" and "set" in formatKeyEntry and setKey? Does it alter the card?
I know the application and the file. I have the AES key. I just want to authenticate to read the content.
2
I don't understand why I got
com.nxp.nfclib.exceptions.SmartCardException: Specified Key type is different from the formatted one.
with
ks.setKey(0, (byte) 0,
IKeyConstants.KeyType.KEYSTORE_KEY_TYPE_AES128, MY_KEY_APP);
My key is 16 bytes long:
public static final byte[] MY_KEY_APP = {(byte) 0x**, (byte) 0x**,
(byte) 0x**, (byte) 0x**, (byte) 0x**, (byte) 0x2A, (byte) 0xC1,
(byte) 0xEF, (byte) 0x**, (byte) 0x**, (byte) 0x**, (byte) 0x**,
(byte) 0x**, (byte) 0x**, (byte) 0x**, (byte) 0x49};
I
3
The post deals with AuthenticateAES, I just have Authenticate.
Best regards.
+ 0
|
- 0