mcuxCsslMemory_Compare Function Definitions More...
Functions | |
MCUX_CSSL_FP_PROTECTED_TYPE (mcuxCsslMemory_Status_t) mcuxCsslMemory_Compare(mcuxCsslParamIntegrity_Checksum_t chk | |
Compares the two memory regions lhs and rhs . More... | |
Variables | |
void const * | pLhs |
void const void const * | pRhs |
void const void const size_t | length |
mcuxCsslMemory_Compare Function Definitions
MCUX_CSSL_FP_PROTECTED_TYPE | ( | mcuxCsslMemory_Status_t | ) |
Compares the two memory regions lhs
and rhs
.
Deprecated type for mcuxClSession protected status codes.
Deprecated type for RSA protected status codes.
Deprecated type for error codes used by code-flow protected PKC component functions.
Deprecated type for error codes used by code-flow protected mcuxClMemory component functions.
Deprecated type for error codes used by code-flow protected Math component functions.
Deprecated type for Key component error codes, returned by functions with code-flow protection.
Deprecated type for ELS driver protected status codes.
Deprecated type for mcuxClEcc component return codes.
The implementation is secure in the following aspects:
length
parameters, i.e. no branches are performed based on the data in pLhs
or pRhs
.chk | The parameter checksum, generated with mcuxCsslParamIntegrity_Protect. |
pLhs | The left-hand side data to compare. Must not be NULL. |
pRhs | The right-hand side data to compare. Must not be NULL. |
length | The number of bytes to compare. Must be different from zero. |
MCUXCSSLMEMORY_STATUS_EQUAL | If the contents of lhs and rhs are equal. |
MCUXCSSLMEMORY_STATUS_NOT_EQUAL | If the contents of lhs and rhs are not equal. |
MCUXCSSLMEMORY_STATUS_INVALID_PARAMETER | If one of the parameters was invalid (i.e. lhs or rhs was NULL or length was zero). |
MCUXCSSLMEMORY_STATUS_FAULT | If a fault was detected. |