Romain Tartiere
f19d9bd05f
Fix parenthesis position.
2010-12-28 11:42:24 +00:00
Romain Tartiere
82a7b8df66
Merge de libfreefare-ultralight branch into trunk (Mifare UltraLightC support).
2010-12-28 11:30:31 +00:00
Romain Tartiere
e4057ef163
Update man pages.
2010-12-26 15:46:07 +00:00
Romain Tartiere
12ad1a452a
Set the default ATS instead of a custom one.
...
This prevent some tools to work properly with a card afterthat.
2010-12-25 09:46:56 +00:00
Romain Tartiere
06c052db36
Detect Mifare DESFire targets with more than one historical character.
2010-12-24 22:14:56 +00:00
Romain Tartiere
9a4b7b5882
New API function mifare_desfire_set_ats().
2010-12-24 22:08:56 +00:00
Romain Tartiere
58f64b881e
Simplify redundant code.
2010-12-24 22:08:15 +00:00
Romain Tartiere
9d8c991f50
Fix example.
2010-12-24 21:10:48 +00:00
Romain Tartiere
adbba0342b
New API function mifare_desfire_set_default_key().
2010-12-24 20:41:43 +00:00
Romain Tartiere
8ff63ea1f3
Commit files forgotten as part of r733.
2010-12-24 20:39:54 +00:00
Romain Tartiere
e587e26aeb
Rename some internal functions.
...
A function with DES in its name that can perform AES crypto is somewhat
disturbing.
2010-12-24 14:10:44 +00:00
Romain Tartiere
7837fa967d
Freshen out cut_assert_success() macro.
2010-12-24 13:59:28 +00:00
Romain Tartiere
3f6327ebca
Fix headers for memset().
2010-12-24 13:49:09 +00:00
Romain Tartiere
4c3f0cd7d0
Sync man pages.
2010-12-24 13:34:25 +00:00
Audrey Diacre
29c8ef5c07
replace last deprecated bzero function by memset.
2010-12-24 13:33:02 +00:00
Romain Tartiere
417052fb2f
Create forgotten man pages symlinks.
2010-12-24 13:24:13 +00:00
Romain Tartiere
01fff97d6c
Add support for ISO authentication with 3DES keys.
2010-12-24 13:04:16 +00:00
Romain Tartiere
c5b893321e
libfrefare: Use local ivect in test.
...
It looks like finally a global variable modified by a test can impact another
test.
2010-12-24 12:58:44 +00:00
Romain Tartiere
8d492abf5d
Change the enciphered_data_length() internal function prototype.
2010-12-24 12:38:52 +00:00
Romain Tartiere
0d8a53308c
Change the mifare_cbc_des() internal function prototype.
2010-12-24 11:41:15 +00:00
Romain Tartiere
873fd7dd3b
Update the NEWS file regarding the mifare_desfire_get_file_settings() buffer overflow fixed in 0.2.3 (update versions).
2010-12-23 18:05:47 +00:00
Romain Tartiere
ee2fd54fa6
Bump version for the 0.3.x series.
2010-12-23 18:02:05 +00:00
Romain Tartiere
dd5156a997
Reindent.
2010-12-18 13:32:05 +00:00
Romain Tartiere
b300ef5fcf
Update the MifareDirection structure for consistency.
2010-12-18 03:11:05 +00:00
Romain Tartiere
ebd98b32e0
Switch from obscure 'int mac' argument to 'MifareCryptoOperation operation'.
2010-12-18 03:07:16 +00:00
Romain Tartiere
683cbdf64f
Rename mifare_desfire_authenticate.c to mifare_desfire_crypto.c.
2010-12-18 02:50:38 +00:00
Romain Tartiere
d098bf623f
Add support for authentication using 3K3DES.
...
Please note that according to the NXP documentation of the Mifare DESFire EV1,
the mifare_desfire_authenticate_iso() function can be used using either 3DES or
3K3DES keys. The former has not been tested yet and is likely not to work. To
word it differently, this is a 3K3DES crypto support, not a ISO authentication
support...
2010-12-18 02:28:27 +00:00
Romain Tartiere
f06b0ac5d3
Ignore the status code when deciphering (3)DES data.
2010-12-18 02:14:51 +00:00
Romain Tartiere
373cb4f0ef
Rewrite some tests using switch statements.
...
Add a note for the reason I do this in the HACKING file.
2010-12-18 02:07:56 +00:00
Romain Tartiere
1d3c3f5dfd
Improve the way data with already a CRC is preprocessed.
2010-12-18 01:52:48 +00:00
Romain Tartiere
79f6cb20e5
Update CMAC code to handle 64 and 128 bit keys.
2010-12-18 01:45:38 +00:00
Romain Tartiere
8d74401e87
Enlarge another buffer to workaround the read_data() buffer overrun.
2010-12-18 01:44:20 +00:00
Romain Tartiere
48b161d67c
Invalidate authentication when changing the currently used key.
2010-12-18 01:32:56 +00:00
Romain Tartiere
143042fb0b
Remove weird code.
...
I should quit coding drunk... or maybe start to...
2010-12-18 01:09:30 +00:00
Romain Tartiere
a6e52db696
Workaround invalid write in read_data () (sic)
...
This has to be improved to some extend in the near future (hence the FIXME).
2010-12-18 01:05:35 +00:00
Romain Tartiere
c9680fd7c7
Fix key_macing_length() return value when nbytes is 0.
2010-12-17 22:53:40 +00:00
Romain Tartiere
5b55528008
Silent down the compiler.
...
The create_application() function has iso_ parameters for creating ISO
application but this mode is not available yet so the code is unused which
annoys the compiler when told to be somewhat strict.
2010-12-17 22:47:12 +00:00
Romain Tartiere
ed028d720a
Fix the fix introduced at r697.
...
Yes, this type I typed 'make' before committing...
2010-12-17 22:45:56 +00:00
Romain Tartiere
0119a43208
Fix freed memory usage.
2010-12-17 22:38:51 +00:00
Romain Tartiere
0a9a964c17
Fix a brunch of potentially reallocated memory areas.
2010-12-15 13:40:58 +00:00
Romain Tartiere
94bf8d83c6
Fix mifare_desfire_get_key_version() when authenticated with an AES key.
2010-12-15 13:34:15 +00:00
Romain Tartiere
3fd80a3eff
Enable the mifare-desfire-ev1-configure-random-uid example.
2010-12-15 13:19:42 +00:00
Romain Tartiere
b91080ffc7
Fix mifare_desfire_free_mem().
2010-12-15 12:51:22 +00:00
Romain Tartiere
29e9d188b4
Display additional Mifare DESFire EV1 information if applicable.
2010-12-15 12:51:05 +00:00
Romain Tartiere
42f9457d9f
Add support for Mifare DESFire EV1 with AES encryption.
2010-12-15 12:43:31 +00:00
Audrey Diacre
1070d9bfde
fix buffer overflow.
2010-12-13 10:56:27 +00:00
Audrey Diacre
5133491c2c
replace deprecated bzero function by memset.
2010-12-10 17:10:12 +00:00
Romain Tartiere
0e2bc992bf
Discard authentication information after deleting the currently selected application.
2010-12-10 14:30:28 +00:00
Romain Tartiere
fac03f5456
Bump version to 0.2.2.
2010-11-24 00:09:08 +00:00
Romain Tartiere
193809f949
Don't build libtestcommon.la if we are not using cutter.
2010-11-24 00:07:47 +00:00