Re: I have problem in AUTHENTICATION

Forum MIFARE SmartCard IC`s MIFARE DESFire I have problem in AUTHENTICATION Re: I have problem in AUTHENTICATION

Re: I have problem in AUTHENTICATION

24. April 2015 at 11:15
hey nimaltd,

I have to admit, I'm more of a Java (Mifare SDK user), but I tried to find a solution on the web for your case.

Check this link:
http://stackoverflow.com/questions/14117025/des-send-and-receive-modes-for-desfire-authentication

A guy solved how to authenticate DESFire and the steps he does are explained in Comments inside the Code, which to my knowledge, are correct steps on how to authenticate a DESFire.

STEPS:

1.send initial authentication request
2.get encrypted (randB) from response
3.16 bytes default key (yours)
4. Keys for 3DES
5. decrypt encoded randB
6. generate randA
7. decrypt randA
8. shift randB 1 byte left and get randB'
9. XOR randB' with randA and decrypt
10. concat (randB' + randA)


For fully details do check the link please and let me know if it was any help in your case.

BR;
David
+ 0  |  - 0