#include #include #include "lib/nfc/helpers/iso7816.h" #define COLOR_RED "\033[0;31m" #define COLOR_GREEN "\033[0;32m" #define COLOR_RESET "\033[0;0m" #define num_elements(A) (sizeof(A)/sizeof(A[0])) //TODO: do something with ISO7816-4 Table 9 — Interindustry data objects for tag allocation authority //0x06 Object identifier (encoding specified in ISO/IEC 8825-1, see examples in annex A) //0x41 Country code (encoding specified in ISO 3166-1 [1] ) and optional national data //0x42 Issuer identification number (encoding and registration specified in ISO/IEC 7812-1 [3] ) and optional issuer data //0x4F Application identifier (AID, encoding specified in 8.2.1.2) void print_hex(const uint8_t* data, size_t length) { for(size_t i=0; i