modules/woz_aliro_stack/src/protocol/tlv.h
openaliro/openaliro
Module
tlv.h
Minimal strict BER/DER-TLV reader for Aliro APDU payloads.
Overview
Minimal strict BER/DER-TLV reader for Aliro APDU payloads.
used by ble_message.c nfc_auth.c nfc_select.c nfc_step_up.c tlv.c
API
Cstruct woz_aliro_tlv
modules/woz_aliro_stack/src/protocol/tlv.h:15
Parsed TLV (Tag-Length-Value): tag (uint32), value (pointer to payload bytes), length (payload size), encoded_length (total tag+length+value bytes).
Cenum woz_aliro_tlv_result
modules/woz_aliro_stack/src/protocol/tlv.h:22
Fint woz_aliro_tlv_next(const uint8_t *data, size_t data_length, size_t *offset, struct woz_aliro_tlv *out)
modules/woz_aliro_stack/src/protocol/tlv.h:30
Fsize_t woz_aliro_tlv_encoded_size(uint32_t tag, size_t value_length)
modules/woz_aliro_stack/src/protocol/tlv.h:36
Fint woz_aliro_tlv_write(uint8_t *data, size_t data_capacity, size_t *offset, uint32_t tag, const uint8_t *value, size_t value_length)
modules/woz_aliro_stack/src/protocol/tlv.h:39