|
Embedded SDK
Embedded SDK
|
Address Book APDU dispatcher. More...
#include <string.h>#include "os_apdu.h"#include "os_helpers.h"#include "os_print.h"#include "os_utils.h"#include "address_book.h"#include "status_words.h"#include "identity.h"
Go to the source code of this file.
Address Book APDU dispatcher.
Entry point for all Address Book sub-commands. Routes each APDU to the appropriate handler based on P1:
Sub-commands that carry large payloads (Rename *) split them across several APDUs. The first chunk (P2=0x00) is prefixed with a 2-byte big-endian total payload length; continuation chunks (P2=0x80) are appended directly. reassemble_chunks() accumulates the data and returns the assembled buffer once complete. All other sub-commands pass their single buffer through unchanged.
Definition in file address_book.c.