MCUX CLNS MCUX Crypto Library Normal Secure |

Functions
mcuxCsslParamIntegrity Function Definitions
MCUX CSSL &ndash; API » Parameter Integrity API

Functions of mcuxCsslParamIntegrity component. More...

## Functions

mcuxCsslParamIntegrity_Checksum_t | mcuxCsslParamIntegrity_Protect (size_t nargs,...)
| Calculates a parameter checksum. More...
uint64_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

  nargs | The 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()

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

Verifies the correctness of a parameter checksum.

Parameters

  chk | The parameter checksum.
  nargs | The 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_VALID | The parameter checksum was correct.
  MCUXCSSLPARAMINTEGRITY_CHECK_INVALID | The parameter checksum was incorrect.