Commit graph

15 commits

Author SHA1 Message Date
Romuald Conty
87034e29a9 Add (and export) NFC Forum AID. 2010-07-28 10:18:28 +00:00
Romuald Conty
a70688222b Add (and export) AID administration codes (provided by MAD document - AN10787) 2010-07-28 10:15:58 +00:00
Romain Tartiere
5779d6f945 Merge the freefare-desfire branch into trunk. 2010-07-26 21:48:18 +00:00
Romuald Conty
cae581eded constify mad related functions when applicable. 2010-07-20 07:47:58 +00:00
Romain Tartiere
dbd3682174 New API functions mad_application_read(), mad_application_write(). 2010-07-03 10:04:06 +00:00
Romain Tartiere
163df002f2 Rename MifareSectorNumber to MifareClassicSectorNumber. 2010-07-03 06:31:28 +00:00
Romain Tartiere
f83918ee41 Fix MAD manipulation for Mifare Classic 4K.
- Allocate large blocks on Mifare Classic 4K in unit tests;
  - Constraints sector number in mad_set_aid();
  - Fix location of AID storage in mad_set_aid() (wrong variable name and offset, ECOPYPASTETOOFAST);
  - New API function mad_sector_reserved();
  - Use mad_sector_reserved() to avoid trying to use reserved sectors.
2010-07-01 21:44:40 +00:00
Romain Tartiere
db0dd52339 Make the MAD read public key public (Rename it to insist on it's public nature). 2010-07-01 14:08:59 +00:00
Romain Tartiere
a4793d7052 Fix mad_write(). 2010-06-24 00:06:33 +00:00
Romain Tartiere
a9f73f414d Fix wrong trailer block number for writing MAD v2. 2010-06-22 17:11:11 +00:00
Romain Tartiere
feb240ee73 Fix MAD CRC algorithm.
The CRC algorithm is not a standard CRC algorithm so rename it to nxp_crc() and adjust all related code.
2010-03-18 21:03:07 +00:00
Romain Tartiere
74bc239a71 Abstract tag manipulation functions.
- Factorize Mifare*Tag as MifareTag;
  - Factorize mifare_*_get_tags() / mifare_*_free_tags() as freefare_get_tags() and freefare_free_tags();
  - Add a new freefare_get_tag_type() function to get a tag type;
  - Update regression test suite;
  - Update example.

While this is a major change that basically change all the API, programs using libfreefare should be easily modified by replacing any Mifare*Tag variable by a generic MifareTag one, adding a few lines of code to check the target's type using freefare_get_tag_type(), and changing any call to mifare_*_get_tags() / mifare_*_free_tags() by the generic freefare_get_tags() and freefare_free_tags() functions.
2010-02-19 14:50:18 +00:00
Romain Tartiere
d8b0a18752 Fix invalid memory access in CRC8 computation functions. 2010-01-09 02:55:42 +00:00
Romuald Conty
75d7ba4adb fix include header in mad.c 2010-01-08 16:17:21 +00:00
Romain Tartiere
32e740ea6d Split out autojunk and actual code files. 2010-01-08 11:46:23 +00:00
Renamed from mad.c (Browse further)