12enum woz_aliro_step_up_result {
13 WOZ_ALIRO_STEP_UP_OK = 0,
14 WOZ_ALIRO_STEP_UP_MORE_RESPONSE = 1,
15 WOZ_ALIRO_STEP_UP_INVALID_ARGUMENT = -1,
16 WOZ_ALIRO_STEP_UP_BUFFER_TOO_SMALL = -2,
17 WOZ_ALIRO_STEP_UP_INVALID_DATA = -3,
18 WOZ_ALIRO_STEP_UP_STATUS_ERROR = -4,
22int woz_aliro_build_device_request(
const uint8_t *element_identifier,
23 size_t element_identifier_length,
bool intent_to_store,
24 uint8_t *output,
size_t output_capacity,
size_t *output_length);
27int woz_aliro_wrap_session_data(
const uint8_t *ciphertext,
size_t ciphertext_length,
28 uint8_t *output,
size_t output_capacity,
size_t *output_length);
30 const uint8_t **ciphertext,
size_t *ciphertext_length);
33int woz_aliro_wrap_do53(
const uint8_t *message,
size_t message_length, uint8_t *output,
34 size_t output_capacity,
size_t *output_length);
36 size_t *message_length);
39int woz_aliro_build_envelope_command(
const uint8_t *encoded_do53,
size_t encoded_length,
40 size_t *offset,
size_t max_command_data,
41 size_t max_response_data,
bool extended_supported,
42 uint8_t *output,
size_t output_capacity,
size_t *output_length,
46 size_t output_capacity,
size_t *output_length);
49int woz_aliro_collect_response(
const uint8_t *response,
size_t response_length, uint8_t *collected,
50 size_t collected_capacity,
size_t *collected_length,
int woz_aliro_build_get_response_command(size_t expected_length, uint8_t *output, size_t output_capacity, size_t *output_length)
Build an ISO 7816 GET RESPONSE command APDU for retrieving data from a previous response chain.
Definition nfc_step_up.c:324
int woz_aliro_unwrap_do53(const uint8_t *encoded, size_t encoded_length, const uint8_t **message, size_t *message_length)
Unwrap an Aliro DO'53 TLV-encoded message: extract the value of a tag-0x53 object from an encoded buf...
Definition nfc_step_up.c:248
int woz_aliro_unwrap_session_data(const uint8_t *session_data, size_t session_data_length, const uint8_t **ciphertext, size_t *ciphertext_length)
Unwrap an ISO 18013-5 SessionData envelope (CBOR map with "data" key) to extract the encrypted cipher...
Definition nfc_step_up.c:206