|
hsw-nbt 1.2.0
OPTIGA Authenticate NBT Host Library for C
|
Generic protocol API for exchanging APDUs with secure elements. More...
Go to the source code of this file.
Macros | |
| #define | IFX_APDU_PROTOCOL_LOG(logger_object, source_information, logger_level, formatter, ...) |
| APDU PROTOCOL library data log macro. | |
| #define | IFX_APDU_PROTOCOL_LOG_BYTES(logger_object, source_information, logger_level, delimeter_1, data, data_len, delimeter_2) |
| APDU PROTOCOL library array of bytes data log macro. | |
| #define | LIB_APDU_PROTOCOL UINT8_C(0x28) |
| APDU protocol library identifier ID. | |
| #define | IFX_APDU_PROTOCOL_LOG_TAG "APDU-PROTOCOL" |
| String used as source information for logging. | |
| #define | IFX_SW_ERROR UINT8_C(0xB0) |
| Reusable error reason if status word returned during ifx_apdu_protocol_transceive() indicates an error. | |
Generic protocol API for exchanging APDUs with secure elements.
Definition in file ifx-apdu-protocol.h.
| #define IFX_APDU_PROTOCOL_LOG | ( | logger_object, | |
| source_information, | |||
| logger_level, | |||
| formatter, | |||
| ... ) |
APDU PROTOCOL library data log macro.
| [in] | logger_object | Logger object in which logging to be done. |
| [in] | source_information | Source information from where logs are originated. |
| [in] | logger_level | Log level |
| [in] | formatter | String with formatter for data passed as variable argument |
It maps to the ifx_logger_log function if IFX_APDU_PROTOCOL_LOG_ENABLE macro is defined other wise it defines IFX_SUCCESS.
Definition at line 60 of file ifx-apdu-protocol.h.
| #define IFX_APDU_PROTOCOL_LOG_BYTES | ( | logger_object, | |
| source_information, | |||
| logger_level, | |||
| delimeter_1, | |||
| data, | |||
| data_len, | |||
| delimeter_2 ) |
APDU PROTOCOL library array of bytes data log macro.
| [in] | logger_object | Logger object in which logging to be done. |
| [in] | source_information | Source information from where logs are originated. |
| [in] | logger_level | Log level |
| [in] | delimeter_1 | Delimeter to differentiate log information and data. |
| [in] | data | Data to be log. |
| [in] | data_len | Length of the data |
| [in] | delimeter_2 | Delimeter to differentiate each data byte |
It maps to the ifx_logger_log_bytes function if IFX_APDU_PROTOCOL_LOG_ENABLE macro is defined other wise it defines IFX_SUCCESS.
Definition at line 63 of file ifx-apdu-protocol.h.
| #define IFX_APDU_PROTOCOL_LOG_TAG "APDU-PROTOCOL" |
String used as source information for logging.
Definition at line 81 of file ifx-apdu-protocol.h.
| #define IFX_SW_ERROR UINT8_C(0xB0) |
Reusable error reason if status word returned during ifx_apdu_protocol_transceive() indicates an error.
Definition at line 87 of file ifx-apdu-protocol.h.
| #define LIB_APDU_PROTOCOL UINT8_C(0x28) |
APDU protocol library identifier ID.
Definition at line 76 of file ifx-apdu-protocol.h.