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

19. January 2017 at 15:36
Hello,

having still a problem with authentication.
When calling method authenticate following error occures:

com.nxp.nfclib.exceptions.InvalidResponseLengthException: Authentication Error



desFireEV1.selectApplication(0);

byte[] KEY_AES = new byte[] {
(byte) 0xAA,(byte) 0xAA,(byte) 0xAA,(byte) 0xAA,(byte) 0xAA, (byte) 0xAA,(byte) 0xAA,(byte) 0xAA,
(byte) 0xFF,(byte) 0xFF, (byte) 0xFF,(byte) 0xFF,(byte) 0xFF,(byte) 0x5F, (byte) 0xFF,(byte) 0xFF,

};

Key key = new SecretKeySpec(KEY_AES,"AES");
KeyData keyData = new KeyData();
keyData.setKey(key);
desFireEV1.authenticate(0, IDESFireEV1.AuthType.AES, KeyType.AES128, keyData);


Need help!!!
+ 0  |  - 0