Reply To: Mifare DesFire Authentication

Forum MIFARE and NFC Reader IC`s Mifare DesFire Authentication Reply To: Mifare DesFire Authentication

Re: Mifare DesFire Authentication

20. June 2016 at 17:00
Ok, thanks Kind.

I have tried to establish encrypt data transmission between smart card and reader using session key. The session key i get from random A and random B. I have communication setting when create file with 0x03 (that means enciphered communication ?).

this is on my step that i have tried.

1. CRC16 Calculation over
->’cmd+fileNo+offset+length+data’
2. Append CRC16 to the data only without command, fileNo, offset and length.
-> ‘data+CRC16’
3. Padd the ‘data+CRC16’ with 0x00 (NOT 0x80, 0x00…) to a multiple of 16 Bytes, if needed.
-> ‘data+CRC32+Zeropadding’
4. Encrypt ‘data+CRC16+Zeropadding’ with Single DES
-> crypted( ‘data+CRC16+Zeropadding’ )
5. Send to the PICC
->’cmd+fileNo+offset+length + crypted(data+CRC16+Zeropadding)’

write command :
ff 00 00 00 1c d4 40 01 3d 00 00 00 00 11 00 00 8a 2b c7 21 23 24 47 73 1c c6 06 db b5 18 cd 90 00

when i Write data to PICC, i get response from PICC :
D5 41 00 af 90 00

when i read data to PICC, i get response from PICC :
24 byte message length of data,

And i decrypt that message and the result is zero value and only 2 byte data not zero. why ?

But i still confuse how to securing transmission ? do you have tutorial for secure transmission? i'm very need help... thanks...
+ 0  |  - 0