26#ifndef T1_MAX_APDU_LEN
27#define T1_MAX_APDU_LEN 4096
31#ifndef T1_MAX_RESPONSE_LEN
32#define T1_MAX_RESPONSE_LEN 4096
Decoded block. INF points into the buffer supplied to t1_block_decode.
Card-side T=1 state. Embedded entirely in caller-provided storage.
uint8_t control_block[254+5]
#define T1_INF_MAX
ISO 7816-3 T=1 block-format encoder / decoder.
size_t t1_state_next_outbound(t1_state_t *state, uint8_t *out, size_t out_cap)
Emit the next outbound block (control reply or response chunk).
bool t1_state_queue_response(t1_state_t *state, const uint8_t *resp, size_t resp_len)
Register the application's APDU response so the state machine can chunk it into I-blocks.
#define T1_MAX_RESPONSE_LEN
Maximum response size that can be chunked back.
#define T1_MAX_APDU_LEN
ISO 7816-3 T=1 transport state machine (card side).
t1_feed_t
Outcome of feeding a block to the state machine.
t1_feed_t t1_state_feed(t1_state_t *state, const t1_block_t *block)
Feed an incoming decoded block to the state machine.
void t1_state_init(t1_state_t *state, bool use_crc)
Initialise the state machine. Sets sequence numbers to 0, IFSC/IFSD to defaults.