No description
Find a file
Romain Tartiere 573fc1b778 Implement mifare_ultralight_write() using macros.
Update issue 58
I can't reproduce this bug, but saw that the mifare_ultralight_write() was
implemented in an old-school way.  I updated the code so that you should have
better traces when compiling the library in debug mode and running:

romain@marvin ~/Projects/libfreefare % cutter -n test_mifare_ultralight_write test
===> 0000   30 07                                            |0.              |
<=== 0000   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  |................|
===> 0000   a2 07 12 34 56 78                                |...4Vx          |
===> 0000   30 07                                            |0.              |
<=== 0000   12 34 56 78 00 00 00 00 00 00 00 00 00 00 00 00  |.4Vx............|
===> 0000   a2 07 aa 55 00 ff                                |...U..          |
===> 0000   30 07                                            |0.              |
<=== 0000   aa 55 00 ff 00 00 00 00 00 00 00 00 00 00 00 00  |.U..............|
===> 0000   a2 07 00 00 00 00                                |......          |
===> 0000   30 07                                            |0.              |
<=== 0000   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  |................|
.

Finished in 0,548238 seconds (total: 0,069079 seconds)

1 test(s), 12 assertion(s), 0 failure(s), 0 error(s), 0 pending(s), 0 omission(s), 0 notification(s)
100% passed
2011-04-05 21:05:27 +00:00
contrib Add my Vim snippets as contrib. 2010-07-29 07:14:11 +00:00
examples Do not exit if the master key settings are not readable. 2011-01-01 12:46:45 +00:00
libfreefare Implement mifare_ultralight_write() using macros. 2011-04-05 21:05:27 +00:00
test Build unit-tests as part of all-am if DEBUG is enabled, otherwise at check-am before running the test suite. 2011-03-26 13:30:14 +00:00
AUTHORS Merge the freefare-desfire branch into trunk. 2010-07-26 21:48:18 +00:00
ChangeLog Import libfreefare into trunk. 2009-12-18 20:32:25 +00:00
configure.ac Update for 0.3.1. 2011-02-23 15:12:47 +00:00
COPYING Import libfreefare into trunk. 2009-12-18 20:32:25 +00:00
HACKING Rewrite some tests using switch statements. 2010-12-18 02:07:56 +00:00
libfreefare.pc.in Install a libfreefare.pc pkg-config module. 2009-12-18 21:31:45 +00:00
Makefile.am Shorter is better. 2011-02-13 14:20:46 +00:00
NEWS Complete ISO 7816 compatibility for Mifare DESFire EV1 2011-03-26 13:22:48 +00:00
README Merge the freefare-desfire branch into trunk. 2010-07-26 21:48:18 +00:00
TODO Rename mifare_desfire_authenticate.c to mifare_desfire_crypto.c. 2010-12-18 02:50:38 +00:00

The libfreefare project aims to provide a convenient API for Mifare card
manipulations.

Supported tags:
  - Mifare Classic 1k
  - Mifare Classic 4k
  - Mifare DESFire 4K
  - Mifare Ultralight

Supported features:
  - Mifare Application Directory (MAD) v1
  - Mifare Application Directory (MAD) v2