Reply To: Switch from DES to AES authentication

Forum MIFARE general topics and applications Switch from DES to AES authentication Reply To: Switch from DES to AES authentication

Re: Switch from DES to AES authentication

3. July 2019 at 20:11
Hello Sebastian

The IV is a delicate topic. If you get it wrong the communication will fail.
But apart from that there are much more pitfalls.
It is impossible to answer your question in a few phrases.

I recommend you to have a look of the entire communication process with a Desfire EV1 card which I have published here:
Desfire EV1 communication examples
https://stackoverflow.com/questions/38283998/desfire-ev1-communication-examples

You will also need a working code to see how to do all the encryption stuff works.
I strongly recommend to study the code of my Desfire DoorOpener (electronics and C++ code)
DIY electronic RFID Door Lock with Battery Backup
https://www.codeproject.com/Articles/1096861/DIY-electronic-RFID-Door-Lock-with-Battery-Backup

The code is made for a Teensy processor, but you find in the ZIP file also a Visual Studio project.
You can study the encryption life in Visual Studio if you write a code which simulates the card answers.

Elmü

+ 0  |  - 0