17 WOZ_ALIRO_AID_SIZE = 9,
18 WOZ_ALIRO_SELECT_COMMAND_SIZE = 15,
21enum woz_aliro_select_phase {
22 WOZ_ALIRO_SELECT_EXPEDITED = 1,
23 WOZ_ALIRO_SELECT_STEP_UP = 2,
26enum woz_aliro_select_result {
27 WOZ_ALIRO_SELECT_OK = 0,
28 WOZ_ALIRO_SELECT_INVALID_ARGUMENT = -1,
29 WOZ_ALIRO_SELECT_INVALID_APDU = -2,
30 WOZ_ALIRO_SELECT_STATUS_ERROR = -3,
31 WOZ_ALIRO_SELECT_WRONG_APPLICATION = -4,
32 WOZ_ALIRO_SELECT_WRONG_TYPE = -5,
33 WOZ_ALIRO_SELECT_VERSION_NOT_SUPPORTED = -6,
42 uint16_t selected_protocol_version;
44 size_t max_command_data_length;
45 size_t max_response_data_length;
46 int extended_length_supported;
49 const uint8_t *proprietary_information_tlv;
50 size_t proprietary_information_tlv_length;
53extern const uint8_t woz_aliro_expedited_aid[WOZ_ALIRO_AID_SIZE];
54extern const uint8_t woz_aliro_step_up_aid[WOZ_ALIRO_AID_SIZE];
57int woz_aliro_build_select_command(
enum woz_aliro_select_phase phase,
58 uint8_t out[WOZ_ALIRO_SELECT_COMMAND_SIZE]);
61int woz_aliro_parse_select_response(
const uint8_t *response,
size_t response_length,
62 enum woz_aliro_select_phase phase,
63 uint16_t *selected_protocol_version);
66 enum woz_aliro_select_phase phase,
71int woz_aliro_parse_proprietary_information(
const uint8_t *encoded,
size_t encoded_length,
72 enum woz_aliro_select_phase phase,
int woz_aliro_parse_select_response_ex(const uint8_t *response, size_t response_length, enum woz_aliro_select_phase phase, struct woz_aliro_select_response *result)
Parse a complete ISO 7816 SELECT response APDU (ending with 9000), validate the AID matches the reque...
Definition nfc_select.c:168
Parsed NFC SELECT response: negotiated protocol version, max command/response data lengths (from 7F66...
Definition nfc_select.h:41