Reply To: Mifare DESFIRE EV1 CMAC Calculation

Forum MIFARE general topics and applications Mifare DESFIRE EV1 CMAC Calculation Reply To: Mifare DESFIRE EV1 CMAC Calculation

Re: Mifare DESFIRE EV1 CMAC Calculation

25. January 2019 at 10:29
Hello,

Thanks for your interest. I controlled my project and edited CMAC algorithm. Now I get same result with AN094534 document and table 24. Now I trying to calculate CMAC of read command. There is a question here. I use APDU command for read tag.

File = 00
Offset = 000000
Length of data to read = 0A0000 (10 byte)

So according to table 24. my read command must be this
BD000000000A0000

but my APDU frame is
90 BD 00 00
0x07
000000000A0000
00

So which command should I use in CMAC algorithm?
CMAC(BD000000000A0000) or CMAC(90BD000007000000000A000000)

Best Regards.


+ 0  |  - 0