Data integrity handling core functionality. More...
Macros | |
#define | MCUX_CSSL_DI_CHECK_PASSED |
Positive comparison result value. | |
#define | MCUX_CSSL_DI_CHECK_FAILED |
Negative comparison result value. | |
#define | MCUX_CSSL_DI_INIT(backupValue) |
Backup of the current data integrity value, that will be checked later on with MCUX_CSSL_SC_CHECK. | |
#define | MCUX_CSSL_DI_CHECK(reference) |
Comparison operation for the data integrity. | |
#define | MCUX_CSSL_DI_CHECK_EXIT(id, reference, fail) |
Comparison operation for the data integrity. | |
Data integrity handling core functionality.
#define MCUX_CSSL_DI_CHECK_PASSED |
Positive comparison result value.
#define MCUX_CSSL_DI_CHECK_FAILED |
Negative comparison result value.
#define MCUX_CSSL_DI_INIT | ( | backupValue | ) |
Backup of the current data integrity value, that will be checked later on with MCUX_CSSL_SC_CHECK.
Note that in case the Security Counter back-end requires allocation, it is expected that this will be handled by the Flow Protection mechanism before the initialization of the Data Integrity.
backupValue | Fresh variable name to store the current DI value. |
#define MCUX_CSSL_DI_CHECK | ( | reference | ) |
Comparison operation for the data integrity.
reference | Reference value to compare the data integrity value against. |
#define MCUX_CSSL_DI_CHECK_EXIT | ( | id, | |
reference, | |||
fail | |||
) |
Comparison operation for the data integrity.
It compares the data integrity value to reference value, and exits with the given fault status code if the comparison fails. If the comparison succeeds, the normal execution will continue.
id | Identifier of the function from which we will exit. |
reference | Reference value to compare the data integrity value against. |
fail | Result that should be returned if the data integrity check failed. |