OPGP_NO_API DWORD get_short(PBYTE buf, DWORD offset)
Returns an unsigned short int from the given position.
Definition: util.c:65
unsigned char * PBYTE
A Microsoft/Muscle LPBYTE, pointer to unsigned char.
Definition: types.h:48
OPGP_NO_API LONG read_TLV(PBYTE buffer, DWORD length, TLV *tlv)
Reads a TLV struct from the given buffer.
Definition: util.c:76
unsigned char BYTE
A Microsoft/Muscle BYTE definition.
Definition: types.h:51
long LONG
A long value.
Definition: types.h:53
USHORT tag
The Tag.
Definition: util.h:41
OPGP_NO_API DWORD convert_byte(BYTE b)
Converts a ISO 7816-4 Le Byte into its value.
Definition: util.c:25
unsigned long DWORD
A Microsoft/Muscle DWORD definition.
Definition: types.h:52
DWORD get_number(PBYTE buf, DWORD offset, BYTE numLength)
Returns an unsigned int from the given position by taking just numLength bytes starting at offset int...
Definition: util.c:44
OPGP_NO_API DWORD get_int(PBYTE buf, DWORD offset)
Returns an unsigned int from the given position.
Definition: util.c:34
DWORD length
The length of the value.
Definition: util.h:42
OPGP_NO_API LONG parse_apdu_case(PBYTE apduCommand, DWORD apduCommandLength, PBYTE caseAPDU, PBYTE lc, PBYTE le)
Parse the APDU case.
Definition: util.c:135
DWORD tlvLength
The length of the whole TLV.
Definition: util.h:44