globalplatform
|
Go to the source code of this file.
Data Structures | |
struct | TLV |
Functions | |
OPGP_NO_API LONG | read_TLV (PBYTE buffer, DWORD length, TLV *tlv) |
Reads a TLV struct from the given buffer. More... | |
OPGP_NO_API DWORD | convert_byte (BYTE b) |
Converts a ISO 7816-4 Le Byte into its value. More... | |
OPGP_NO_API DWORD | get_short (PBYTE buf, DWORD offset) |
Returns an unsigned short int from the given position. More... | |
OPGP_NO_API DWORD | get_int (PBYTE buf, DWORD offset) |
Returns an unsigned int from the given position. More... | |
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 into account. More... | |
OPGP_NO_API LONG | parse_apdu_case (PBYTE apduCommand, DWORD apduCommandLength, PBYTE caseAPDU, PBYTE lc, PBYTE le) |
Parse the APDU case. | |
This file contains all GlobalPlatform utility functionality.
Converts a ISO 7816-4 Le Byte into its value.
b | [in] The Le BYTE. |
Returns an unsigned int from the given position.
buf | [in] The buffer. |
offset | [in] The offset in the buffer. |
Returns an unsigned int from the given position by taking just numLength bytes starting at offset into account.
buf | [in] The buffer. |
offset | [in] The offset in the buffer. |
numLength | The length of the number. |
Returns an unsigned short int from the given position.
buf | [in] The buffer. |
offset | [in] The offset in the buffer. |