logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

mifare_desfire_aid_new, mifare_desfire_aid_new_with_mad_aid, mifare_desfire_aid_get_aid — Mifare DESFire

Authors

       Romain Tartiere <romain@il4p.org>

Debian                                          September 3, 2010                          MIFARE_DESFIRE_AID(3)

Description

       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.

Library

       Mifare card manipulation library (libfreefare, -lfreefare)

Name

       mifare_desfire_aid_new,  mifare_desfire_aid_new_with_mad_aid, mifare_desfire_aid_get_aid — Mifare DESFire
       AID Manipulation Functions

Return Values

       The allocation functions returns the allocated AID on success, NULL otherwise.

See Also

freefare(3), mifare_classic(3), free(3)

Synopsis

#include<freefare.h>MifareDESFireAIDmifare_desfire_aid_new(uint32_taid);

       MifareDESFireAIDmifare_desfire_aid_new_with_mad_aid(MadAidmad_aid, uint8_tn);

       uint32_tmifare_desfire_aid_get_aid(MifareDESFireAIDaid);