timmerk / libfreefare

Automatically exported from code.google.com/p/libfreefare
Other
0 stars 0 forks source link

aes authentication problem? #32

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
hey guys,

i use a pn532 board with arduino as a nfc reader. so i played with it a bit and 
found the little tool: mifare-desfire-analyze.

now my problem, sometimes i get an error, so here is the debug log:

[...]
debug   libnfc.chip.pn53x   InDataExchange
debug   libnfc.chip.pn53x   No timeout
debug   libnfc.bus.uart TX: 00 00 ff 0a f6 d4 40 01 90 aa 00 00 01 00 00 b0 00 
debug   libnfc.bus.uart RX: 00 00 ff 00 ff 00 
debug   libnfc.chip.pn53x   PN53x ACKed
debug   libnfc.bus.uart RX: 00 00 ff 15 eb 
debug   libnfc.bus.uart RX: d5 41 
debug   libnfc.bus.uart RX: 00 8d b1 f0 47 07 5d 45 23 80 6a 42 13 90 43 11 80 91 
af 
debug   libnfc.bus.uart RX: c6 00 
debug   libnfc.chip.pn53x   InDataExchange
debug   libnfc.chip.pn53x   No timeout
debug   libnfc.bus.uart TX: 00 00 ff 29 d7 d4 40 01 90 af 00 00 20 6a c1 fd 0c 47 
9b ea a3 0e e8 b3 cd 0e 8c 0d 46 a0 27 48 01 ce 60 9c 4e f0 85 4a 47 9e c1 ea 
6f 00 a0 00 
debug   libnfc.bus.uart RX: 00 00 00 00 00 00 
error   libnfc.chip.pn53x   Unexpected PN53x reply!
debug   libnfc.chip.pn53x   InDataExchange
debug   libnfc.chip.pn53x   No timeout
[...]

and after this one long command, i only get "unexpected pn53x reply"s.
so i checked the source code of the tool.. the command is generated in 
"mifare_desfire.c" in "static int authenticate (...)" because of authenticate 
with aes.

any idea why this is happend?

greeting
Tobi

Original issue reported on code.google.com by tobiasfu...@gmail.com on 9 Aug 2014 at 4:30