Topic: Mifare Desfire Authentication Problem : PCD verification failure

I have a problem when I want to send the authentication command with libNfc to the Mifare Desfire. In fact, the 2 first steps succeeds but the last step fails, the last step is when the PCD verifies that the RandA' sent by the PICC is the ROTRight of RandA generated by him.

can anyone help me to know why this is hapenning ?

(sorry for any English gramma mistakes ).

Thanks in advance.

Re: Mifare Desfire Authentication Problem : PCD verification failure

The authentication is now ok but I don't know why smile . IN fact, what I did is that I have changed the cbc mode to ecb mod in the last step of the authentication process decryption. could someone  give me an explanation for me ?

thanks in advance