Embedded SDK
Embedded SDK
Loading...
Searching...
No Matches
address_book.c File Reference

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"
Include dependency graph for address_book.c:

Go to the source code of this file.

Detailed Description

Address Book APDU dispatcher.

Entry point for all Address Book sub-commands. Routes each APDU to the appropriate handler based on P1:

Multi-chunk reassembly

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.