|
hsw-nbt 1.2.0
OPTIGA Authenticate NBT Host Library for C
|
Data storage for APDU fields. More...
#include <infineon/ifx-apdu.h>
Data Fields | |
| uint8_t | cla |
| APDU instruction class. | |
| uint8_t | ins |
| APDU instruction code. | |
| uint8_t | p1 |
| First APDU instruction parameter byte. | |
| uint8_t | p2 |
| Second APDU instruction parameter byte. | |
| size_t | lc |
| Length of APDU.data. | |
| uint8_t * | data |
Actual APDU content data (might be NULL ). | |
| size_t | le |
| Expected number of bytes in response. | |
Related Symbols | |
(Note that these are not member symbols.) | |
| ifx_status_t | ifx_apdu_encode (const ifx_apdu_t *apdu, uint8_t **buffer, size_t *buffer_len) |
| Encodes APDU to its binary representation. | |
| ifx_status_t | ifx_apdu_decode (ifx_apdu_t *apdu, const uint8_t *data, size_t data_len) |
| Decodes binary data to its member representation in APDU object. | |
| void | ifx_apdu_destroy (ifx_apdu_t *apdu) |
| Frees memory associated with APDU object (but not object itself). | |
Data storage for APDU fields.
Definition at line 88 of file ifx-apdu.h.
|
related |
Decodes binary data to its member representation in APDU object.
| [out] | apdu | APDU object to store values in. |
| [in] | data | Binary data to be decoded. |
| [in] | data_len | Number of bytes in data. |
IFX_SUCCESS if successful, any other value in case of error.
|
related |
Frees memory associated with APDU object (but not object itself).
APDU objects may contain dynamically allocated data (e.g. APDU.data). Users would need to manually check which members have been dynamically allocated and free them themselves. Calling this function will ensure that all dynamically allocated members have been freed.
| [in] | apdu | APDU object whose data shall be freed. |
|
related |
Encodes APDU to its binary representation.
| [in] | apdu | APDU to be encoded. |
| [out] | buffer | Buffer to store encoded data in. |
| [out] | buffer_len | Pointer for storing number of bytes in buffer. |
IFX_SUCCESS if successful, any other value in case of error. | uint8_t ifx_apdu_t::cla |
APDU instruction class.
Definition at line 93 of file ifx-apdu.h.
| uint8_t* ifx_apdu_t::data |
Actual APDU content data (might be NULL ).
Definition at line 118 of file ifx-apdu.h.
| uint8_t ifx_apdu_t::ins |
APDU instruction code.
Definition at line 98 of file ifx-apdu.h.
| size_t ifx_apdu_t::lc |
Length of APDU.data.
Definition at line 113 of file ifx-apdu.h.
| size_t ifx_apdu_t::le |
Expected number of bytes in response.
Definition at line 123 of file ifx-apdu.h.
| uint8_t ifx_apdu_t::p1 |
First APDU instruction parameter byte.
Definition at line 103 of file ifx-apdu.h.
| uint8_t ifx_apdu_t::p2 |
Second APDU instruction parameter byte.
Definition at line 108 of file ifx-apdu.h.