mifare_desfire_aid3
Mifare desfire aid manipulation functions
Usage
#include <freefare.h>
MifareDESFireAID
mifare_desfire_aid_new(uint32_t aid);
MifareDESFireAID
mifare_desfire_aid_new_with_mad_aid(MadAid mad_aid, uint8_t n);
uint32_t
mifare_desfire_aid_get_aid(MifareDESFireAID aid);
Library
Mifare card manipulation library (libfreefare, -lfreefare)
Overview
The mifare_desfire_aid_*() functions allows management of Mifare DESFire AIDs. The mifare_desfire_aid_new() function returns a new Mifare DESFire AID of value aid.
The mifare_desfire_aid_new_with_mad_aid() functions returns a new Mifare DESFire AID using a Mifare Classic AID mad_aid and n as the last nibble of the new AID.
Both mifare_desfire_aid_new() and mifare_desfire_aid_new_with_mad_aid() allocates memory that should be reclaimed using free(3).
The mifare_desfire_aid_get_aid() function returns the aid of the provided Mifare DESFire AID.
Return values
The allocation functions returns the allocated AID on success, NULL otherwise.
Releases
Unchanged in 6 releases since Debian 8 (Jessie).