MCUX CLNS
MCUX Crypto Library Normal Secure
 
Loading...
Searching...
No Matches
mcuxClCrc.h
Go to the documentation of this file.
1/*--------------------------------------------------------------------------*/
2/* Copyright 2021, 2023 NXP */
3/* */
4/* NXP Proprietary. This software is owned or controlled by NXP and may */
5/* only be used strictly in accordance with the applicable license terms. */
6/* By expressly accepting such terms or by downloading, installing, */
7/* activating and/or otherwise using the software, you are agreeing that */
8/* you have read, and that you agree to comply with and are bound by, such */
9/* license terms. If you do not agree to be bound by the applicable */
10/* license terms, then you may not retain, install, activate or otherwise */
11/* use the software. */
12/*--------------------------------------------------------------------------*/
13
26#ifndef MCUXCLCRC_H_
27#define MCUXCLCRC_H_
28
29#include <mcuxClCore_Platform.h>
31
32#ifdef __cplusplus
33extern "C" {
34#endif
35
56MCUX_CSSL_FP_PROTECTED_TYPE(uint16_t) mcuxClCrc_computeCRC16(const uint8_t *pBytes, uint32_t length);
57
58#ifdef MCUXCL_FEATURE_CRC_CRC32
71MCUX_CSSL_FP_FUNCTION_DECL(mcuxClCrc_computeCRC32)
72MCUX_CSSL_FP_PROTECTED_TYPE(uint32_t) mcuxClCrc_computeCRC32(const uint8_t *pBytes, uint32_t length);
73#endif /* MCUXCL_FEATURE_CRC_CRC32 */
74 /* mcuxClCrc_Functions */
78
79#ifdef __cplusplus
80} /* extern "C" */
81#endif
82
83#endif /* MCUXCLCRC_H_ */
Provides the API for the CSSL flow protection mechanism.
uint16_t mcuxClCrc_computeCRC16(const uint8_t *pBytes, uint32_t length)
Compute a 16-bit CRC checksum.
#define MCUX_CSSL_FP_FUNCTION_DECL(...)
Declaration of a flow protected function.
Definition mcuxCsslFlowProtection.h:125
#define MCUX_CSSL_FP_PROTECTED_TYPE(resultType)
Based on a given base type, builds a return type with flow protection.
Definition mcuxCsslFlowProtection.h:81