Example of using function computeCRC32 to perform a CRC-32 checksum generation on a given data buffer.
Example of using function computeCRC32 to perform a CRC-32 checksum generation on a given data buffer.
#include <stdint.h>
#include <stddef.h>
#include <mcuxClCore_Examples.h>
static const uint8_t data[] = {
0xA1u, 0xEBu, 0xC4u, 0xBFu, 0x58u, 0xE7u, 0xB3u, 0xA3u,
0xD3u, 0x08u, 0x41u, 0xEDu, 0x0Bu, 0x99u, 0x56u, 0x2Au,
0xEBu, 0xB8u, 0xDEu, 0x6Du, 0x15u, 0xAEu, 0x26u
};
#define NCP_CL_CRC_REF_RESULT 0x08245E2Fu
MCUXCLEXAMPLE_FUNCTION(mcuxClCrc_Crc32_example)
{
data,
sizeof(data))
);
{
return MCUXCLEXAMPLE_STATUS_ERROR;
}
return MCUXCLEXAMPLE_STATUS_OK;
}
Definition of function identifiers for the flow protection mechanism.
Top-level include file for the mcuxClCrc component.
Provides the API for the CSSL flow protection mechanism.
uint32_t mcuxClCrc_computeCRC32(const uint8_t *pBytes, uint32_t length)
Compute a 32-bit CRC checksum.
#define MCUX_CSSL_FP_FUNCTION_CALL_BEGIN(...)
Call a flow protected function and check the protection token.
Definition mcuxCsslFlowProtection.h:623
#define MCUX_CSSL_FP_FUNCTION_CALLED(...)
Expectation of a called function.
Definition mcuxCsslFlowProtection.h:777
#define MCUX_CSSL_FP_FUNCTION_CALL_END(...)
End a function call section started by MCUX_CSSL_FP_FUNCTION_CALL_BEGIN.
Definition mcuxCsslFlowProtection.h:658