MRTD add file lookup by tag and EF.COM format

This commit is contained in:
Chris van Marle
2022-10-11 22:13:35 +02:00
parent 5e7f13f9c8
commit 2ae8e97077
2 changed files with 58 additions and 22 deletions

View File

@@ -48,6 +48,7 @@ typedef struct {
} MrtdData;
typedef struct {
const char* name;
const uint8_t short_id;
const uint16_t file_id;
const uint8_t tag;
@@ -83,6 +84,13 @@ struct EFFormat {
extern struct EFFormat EF;
#define MAX_EFCOM_TAGS 18
typedef struct {
uint16_t lds_version; // xxyy => xx.yy (major.minor)
uint32_t unicode_version; // aabbcc => aa.bb.cc (major.minor.release)
uint8_t tag_list[MAX_EFCOM_TAGS];
} EFComFormat;
//TODO: description
MrtdApplication* mrtd_alloc_init(FuriHalNfcTxRxContext* tx_rx);
bool mrtd_select_app(MrtdApplication* app, AIDValue aid);