CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
Loading...
Searching...
No Matches
t1_block_t Struct Reference

Decoded block. INF points into the buffer supplied to t1_block_decode. More...

#include <t1_block.h>

Public Attributes

uint8_t nad
uint8_t pcb
t1_block_kind_t kind
uint8_t i_ns
bool i_more
uint8_t r_nr
t1_r_error_t r_err
t1_s_subtype_t s_subtype
const uint8_t * inf
uint8_t inf_len
bool edc_ok
bool use_crc

Detailed Description

Decoded block. INF points into the buffer supplied to t1_block_decode.

Definition at line 69 of file t1_block.h.

Member Data Documentation

◆ edc_ok

bool t1_block_t::edc_ok

Definition at line 85 of file t1_block.h.

Referenced by handle_iblock(), handle_rblock(), handle_sblock(), and t1_block_decode().

◆ i_more

bool t1_block_t::i_more

More-data flag (chaining bit).

Definition at line 75 of file t1_block.h.

Referenced by handle_iblock(), and t1_block_decode().

◆ i_ns

uint8_t t1_block_t::i_ns

N(S) sequence number, 0 or 1.

Definition at line 74 of file t1_block.h.

Referenced by handle_iblock(), and t1_block_decode().

◆ inf

const uint8_t* t1_block_t::inf

Definition at line 82 of file t1_block.h.

Referenced by handle_iblock(), handle_sblock(), and t1_block_decode().

◆ inf_len

uint8_t t1_block_t::inf_len

Definition at line 83 of file t1_block.h.

Referenced by handle_iblock(), handle_sblock(), and t1_block_decode().

◆ kind

t1_block_kind_t t1_block_t::kind

Definition at line 72 of file t1_block.h.

Referenced by t1_block_decode(), and t1_state_feed().

◆ nad

uint8_t t1_block_t::nad

Definition at line 70 of file t1_block.h.

Referenced by t1_block_decode().

◆ pcb

uint8_t t1_block_t::pcb

Definition at line 71 of file t1_block.h.

Referenced by t1_block_decode().

◆ r_err

t1_r_error_t t1_block_t::r_err

R-block error indicator.

Definition at line 78 of file t1_block.h.

Referenced by t1_block_decode().

◆ r_nr

uint8_t t1_block_t::r_nr

N(R) expected sequence number, 0 or 1.

Definition at line 77 of file t1_block.h.

Referenced by handle_rblock(), and t1_block_decode().

◆ s_subtype

t1_s_subtype_t t1_block_t::s_subtype

Definition at line 80 of file t1_block.h.

Referenced by handle_sblock(), and t1_block_decode().

◆ use_crc

bool t1_block_t::use_crc

true if 2-byte CRC was expected; false for LRC.

Definition at line 86 of file t1_block.h.

Referenced by t1_block_decode().


The documentation for this struct was generated from the following file:
  • components/mod_gpg/include/mod_gpg/openpgp/t1/t1_block.h