MCUX CLNS
MCUX Crypto Library Normal Secure
mcuxCsslParamIntegrity Function Definitions

Functions of mcuxCsslParamIntegrity component. More...

Functions

mcuxCsslParamIntegrity_Checksum_t mcuxCsslParamIntegrity_Protect (size_t nargs,...)
 Calculates a parameter checksum. More...
 
mcuxCsslParamIntegrity_Checksum_t mcuxCsslParamIntegrity_Validate (mcuxCsslParamIntegrity_Checksum_t chk, size_t nargs,...)
 Verifies the correctness of a parameter checksum. More...
 

Detailed Description

Functions of mcuxCsslParamIntegrity component.

Function Documentation

◆ mcuxCsslParamIntegrity_Protect()

mcuxCsslParamIntegrity_Checksum_t mcuxCsslParamIntegrity_Protect ( size_t  nargs,
  ... 
)

Calculates a parameter checksum.

Parameters
nargsThe number of parameters to be protected.
...The parameters that should be protected. Note that parameters bigger than a single machine word are not supported.
Returns
checksum over the input parameters to be protected

◆ mcuxCsslParamIntegrity_Validate()

mcuxCsslParamIntegrity_Checksum_t mcuxCsslParamIntegrity_Validate ( mcuxCsslParamIntegrity_Checksum_t  chk,
size_t  nargs,
  ... 
)

Verifies the correctness of a parameter checksum.

Parameters
chkThe parameter checksum.
nargsThe number of parameters to be protected.
...The parameters that were used to calculate the parameter checksum. Note that parameters bigger than a single machine word are not supported.
Returns
A status code encapsulated in a flow-protection type.
Return values
MCUXCSSLPARAMINTEGRITY_CHECK_VALIDThe parameter checksum was correct.
MCUXCSSLPARAMINTEGRITY_CHECK_INVALIDThe parameter checksum was incorrect.