Romain Tartiere
70f2fe2685
Do not freeze the card Master Key in mifare-desfire-write-ndef.
...
Since it is irreversible, the card cannot be used for e.g. running the
regression tests suite.
2010-09-03 15:56:37 +00:00
Romain Tartiere
717e18f810
Display Master Key settings in mifare-desfire-info.
2010-09-03 15:54:58 +00:00
Audrey Diacre
487bc621a9
add a new example "mifare-desfire-write-ndef" that put a simple NDEF content on DESFire.
2010-09-03 14:36:17 +00:00
Romuald Conty
bb840dccaf
minor cosmetic enhancements.
2010-09-03 12:51:45 +00:00
Romuald Conty
02d09e58f7
Dirty patch to be able to create "real" MifareDESFareAID.
2010-08-31 16:03:08 +00:00
Romain Tartiere
5aafbc9a48
Indent after last commit.
2010-08-31 12:00:56 +00:00
Romain Tartiere
7ba83f79ed
Enhance the mifare-classic-write-ndef example.
...
- Only format the PICC if no MAD is present;
- Do not overwrite an existing MAD.
2010-08-31 12:00:02 +00:00
Romain Tartiere
e68ae59c5e
Rename mad_application_(read|write) to mifare_application_(read|write).
...
Fixes issue 40.
2010-08-24 10:51:58 +00:00
Romain Tartiere
cc50ebc4df
Fix $Id$ vcs keywords.
...
- Add a new svn-keywords target to fix missing properties;
- Add a new svn-keywords-check target to locate files lacking $Id$ statement.
2010-07-29 06:25:57 +00:00
Romuald Conty
9ff14c416d
mifare-classic-write-ndef now use newly introduced public keys and AID.
2010-07-28 10:23:56 +00:00
Romain Tartiere
6631491dec
change sectors keys THEN write application data.
...
This should avoid failure in some advanced use cases and when the example will be able to add user-provided data without data-loss.
Suggested by: Romuald Conty <rconty@il4p.fr>
2010-07-27 14:03:20 +00:00
Romain Tartiere
0ada18e508
Fix sector counts.
...
Submitted by: Romuald Conty <rconty@il4p.fr>
Pointy hat to: me
2010-07-27 13:54:09 +00:00
Romain Tartiere
21fa85ca1d
Only search keys of existing sectors.
2010-07-27 13:37:57 +00:00
Romain Tartiere
9872a1b087
Rename DESFIRE_4K to DESFIRE.
...
The code can work with virtually any size of DESFire (since the operating
system embedded in the card handle almost everything), so there is no need for
us to distinguish cards of different sizes.
2010-07-27 08:44:12 +00:00
Romain Tartiere
5779d6f945
Merge the freefare-desfire branch into trunk.
2010-07-26 21:48:18 +00:00
Romain Tartiere
3f6a142b57
Enhance the mifare-classic-write-ndef example.
...
- Use the new mifare_application_alloc() and mad_application_write API;
- Deal with writing over multiple sectors with different keys.
2010-07-26 20:27:21 +00:00
Romain Tartiere
9ba6d198b8
Merge r487 from the libfreefare-desfire branch.
2010-07-26 20:21:02 +00:00
Romain Tartiere
f425ae30c6
Merge r486 from the libfreefare-desfire branch.
2010-07-26 20:20:22 +00:00
Romuald Conty
4230d2b378
Add missing config.h include in mifare-classic-format example. Fix Issue 34.
2010-07-07 07:25:16 +00:00
Romain Tartiere
9e5820b89e
Allow mifare-classic-format to be run non-interactively.
2010-07-03 09:14:32 +00:00
Romain Tartiere
6cbb9f4f9d
Add a fast-format feature in the mifare-classic-format utility to only erase MAD.
2010-07-03 09:09:26 +00:00
Romain Tartiere
163df002f2
Rename MifareSectorNumber to MifareClassicSectorNumber.
2010-07-03 06:31:28 +00:00
Romain Tartiere
163ce56cc0
Refactoring Blocks vs. Sectors.
...
- mifare_classic_format_sector() now wants a sector instead of a block (the name was really disturbing);
- New public API functions for Block <=> Sector conversions.
2010-07-01 23:19:45 +00:00
Romain Tartiere
4a1415ed01
s/blocks/sectors/
2010-07-01 13:25:14 +00:00
Romuald Conty
97edcb45e8
factorize some code in examples/mifare-classic-write-ndef
2010-06-29 15:16:35 +00:00
Romuald Conty
0296e52d29
minor enhancement in mifare-classic-format progress display with 4k.
2010-06-29 08:26:50 +00:00
Romuald Conty
0447774e17
(mifare-classic-write-ndef) fix authentication block number with 4k.
2010-06-28 19:13:10 +00:00
Romuald Conty
d76ee4c2bd
enhance progress display with MIFARE Classic 1K.
2010-06-28 13:23:49 +00:00
Romain Tartiere
5027d69b7e
Silent down gcc44 -Wextra warnings.
2010-06-26 13:48:25 +00:00
Romain Tartiere
4ae3bf555d
Display format operation progress.
2010-06-26 11:57:25 +00:00
Romain Tartiere
efe5bbad9e
Force disconnect to avoid failure when the same key is usable as key A and key B.
2010-06-24 00:19:05 +00:00
Romain Tartiere
a235dbd0a9
Fix TLV terminator. 0xFE is part of TLV, not NDEF.
2010-06-23 23:21:47 +00:00
Romain Tartiere
4e3cccd071
Actually write some NDEF data in the mifare-classic-write-ndef example.
2010-06-23 02:05:28 +00:00
Romain Tartiere
d88aa9b29b
Add a new example to write a MAD on MIFARE Classic cards.
...
It is a WIP example that should not stay long as an example and will be moved in the regression test-suite sooner or later.
2010-06-22 22:44:53 +00:00
Romain Tartiere
73c50a544a
Remove deprecated API mifare_ultralight_get_uid(), mifare_classic_get_uid().
2010-03-30 16:24:37 +00:00
Romain Tartiere
0d4744001a
Add support for friendly tag names.
2010-03-01 14:04:47 +00:00
Romain Tartiere
5f7f8ffe2a
Add support for MIFARE Classic 4K.
...
- New mifare_classic_first_sector_block(), mifare_classic_last_sector_block() functions to ease detection of sectors boundaries;
- New unit tests for mifare_classic_first_sector_block() and mifare_classic_last_sector_block();
- Start to update the API for consistently using blocks and not mixing blocks and sectors with mifare_classic_*() functions;
- Update the mifare-classic-format(1) example to handle MIFARE Classic 1k and 4k.
Many thanks to Johann Dantant from SpringCard for giving me MIFARE Classic 4k cards.
2010-02-23 02:12:18 +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
d76da4697b
Update files headers and Ids.
2010-02-19 10:43:06 +00:00
Romain Tartiere
10b8b92eb9
Fix a brunch of warnings.
2010-01-22 16:06:26 +00:00
Romain Tartiere
cdf4404dd9
Fix wrong variable name.
2010-01-19 23:10:01 +00:00
Romain Tartiere
935ab47c54
Update the mifare-classic-format example.
2010-01-10 14:24:26 +00:00
Romain Tartiere
2b76328c78
Unbreak example and add autotool stuff to help building.
2010-01-08 13:40:39 +00:00
Romuald Conty
76a8c8e8b1
add an example draft mifare-classic-format, a tool which can be usefull to debug :)
2010-01-06 23:44:17 +00:00