Rework tag allocation.

Split Mifare Classic 1 and 4K tag allocation.
Rely on new tasting functions.
This commit is contained in:
Romain Tartière 2016-01-18 16:55:47 +01:00
parent 0279361873
commit ee628f7ec5
11 changed files with 162 additions and 109 deletions

View file

@ -178,7 +178,7 @@ test_mifare_ultralightc_authenticate (void)
int res;
MifareDESFireKey key;
if (tag->tag_info->type == MIFARE_ULTRALIGHT_C) {
if (is_mifare_ultralightc (tag)) {
uint8_t key1_3des_data[16] = { 0x49, 0x45, 0x4D, 0x4B, 0x41, 0x45, 0x52, 0x42, 0x21, 0x4E, 0x41, 0x43, 0x55, 0x4F, 0x59, 0x46 };
key = mifare_desfire_3des_key_new (key1_3des_data);
res = mifare_ultralightc_authenticate (tag, key);