Reply To: Authentication Problem Desfire EV1 with AES

Forum MIFARE SDK Authentication Problem Desfire EV1 with AES Reply To: Authentication Problem Desfire EV1 with AES

Re: Authentication Problem Desfire EV1 with AES

23. January 2017 at 17:16
Here my code:

desFireEV1.selectApplication(4726016);
desFireEV1.authenticate(1,IDESFireEV1.AuthType.AES,KeyType.AES128,objKEY_AES128);
String auth = desFireEV1.getAuthStatus();
IDESFireEV1.CardDetails details = desFireEV1.getCardDetails();
rd = desFireEV1.readData(1, 0, 16, IDESFireEV1.CommunicationType.Enciphered,1024);


AppId: 4726016
Key: id 1 , type: reading key


like i wrote before I'm stuck with reading the data,I thought it should straight forward but I'm getting different values each time I try to read the same card.
Isn't the result of readData() decrypted after the Authentication was successful?
And I'm getting an com.nxp.nfclib.exceptions.InvalidResponseLengthException: Authentication Error when I'm using the Method getFileIDs() after succeccful authentication (auth = AES).
+ 0  |  - 0