|
CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
|
Card-side T=1 state. Embedded entirely in caller-provided storage. More...
#include <t1_state.h>
Public Attributes | |
| uint8_t | ns_send |
| uint8_t | ns_expected |
| uint16_t | ifsc |
| uint16_t | ifsd |
| bool | use_crc |
| uint8_t | apdu_buf [4096] |
| size_t | apdu_len |
| bool | apdu_in_progress |
| uint8_t | resp_buf [4096] |
| size_t | resp_len |
| size_t | resp_sent |
| bool | resp_pending |
| uint8_t | control_block [254+5] |
| size_t | control_len |
Card-side T=1 state. Embedded entirely in caller-provided storage.
Definition at line 44 of file t1_state.h.
| uint8_t t1_state_t::apdu_buf[4096] |
Definition at line 57 of file t1_state.h.
Referenced by handle_iblock().
| bool t1_state_t::apdu_in_progress |
Definition at line 59 of file t1_state.h.
Referenced by handle_iblock(), and handle_sblock().
| size_t t1_state_t::apdu_len |
Definition at line 58 of file t1_state.h.
Referenced by handle_iblock(), and handle_sblock().
| uint8_t t1_state_t::control_block[254+5] |
Definition at line 68 of file t1_state.h.
Referenced by encode_rblock(), encode_sblock_response(), and t1_state_next_outbound().
| size_t t1_state_t::control_len |
Definition at line 69 of file t1_state.h.
Referenced by encode_rblock(), encode_sblock_response(), and t1_state_next_outbound().
| uint16_t t1_state_t::ifsc |
Max INF length we can RECEIVE. Initialised to T1_DEFAULT_IFSC.
Definition at line 50 of file t1_state.h.
Referenced by t1_state_init().
| uint16_t t1_state_t::ifsd |
Max INF length the READER can RECEIVE. Initialised to T1_DEFAULT_IFSC.
Definition at line 51 of file t1_state.h.
Referenced by handle_sblock(), t1_state_init(), and t1_state_next_outbound().
| uint8_t t1_state_t::ns_expected |
N(S) we expect on the next incoming I-block.
Definition at line 47 of file t1_state.h.
Referenced by handle_iblock(), handle_rblock(), handle_sblock(), and t1_state_init().
| uint8_t t1_state_t::ns_send |
Next N(S) we will set on outgoing I-block.
Definition at line 46 of file t1_state.h.
Referenced by handle_rblock(), handle_sblock(), t1_state_init(), and t1_state_next_outbound().
| uint8_t t1_state_t::resp_buf[4096] |
Definition at line 62 of file t1_state.h.
Referenced by t1_state_next_outbound(), and t1_state_queue_response().
| size_t t1_state_t::resp_len |
Definition at line 63 of file t1_state.h.
Referenced by handle_sblock(), t1_state_next_outbound(), and t1_state_queue_response().
| bool t1_state_t::resp_pending |
Definition at line 65 of file t1_state.h.
Referenced by handle_rblock(), handle_sblock(), t1_state_next_outbound(), and t1_state_queue_response().
| size_t t1_state_t::resp_sent |
Definition at line 64 of file t1_state.h.
Referenced by handle_sblock(), t1_state_next_outbound(), and t1_state_queue_response().
| bool t1_state_t::use_crc |
Definition at line 54 of file t1_state.h.
Referenced by encode_rblock(), encode_sblock_response(), t1_state_init(), and t1_state_next_outbound().