fix issue?

This commit is contained in:
RogueMaster
2022-11-04 13:37:07 -04:00
parent 2cc4dadf19
commit 17db1286a8
2 changed files with 2 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ TlvInfo iso7816_tlv_parse(const uint8_t* data) {
tlv.tag = *(data++);
tlv.ber.constructed = ((tlv.tag & 0x20) != 0);
tlv.ber.class = (tlv.tag >> 6) & 0x03;
tlv.ber.classVar = (tlv.tag >> 6) & 0x03;
if((tlv.tag & 0x1f) == 0x1f) {
// BER-TLV, multi byte tag
tlv.tag <<= 8;

View File

@@ -15,7 +15,7 @@ typedef struct {
struct {
uint16_t tag;
uint8_t constructed : 1;
uint8_t class : 2;
uint8_t classVar : 2;
} ber;
size_t length;
const uint8_t* value;