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 Confidential and Proprietary. This software is owned or controlled */
5/* by NXP and may only be used strictly in accordance with the applicable */
6/* license terms. By expressly accepting such terms or by downloading, */
7/* installing, activating and/or otherwise using the software, you are */
8/* agreeing that you have read, and that you agree to comply with and are */
9/* bound by, such license terms. If you do not agree to be bound by the */
10/* applicable license terms, then you may not retain, install, activate or */
11/* otherwise use the software. */
12/*--------------------------------------------------------------------------*/
13
25
26#ifndef MCUXCLCRC_H_
27#define MCUXCLCRC_H_
28
29#include <mcuxClCore_Platform.h>
31
32#ifdef __cplusplus
33extern "C" {
34#endif
35
42
56MCUX_CSSL_FP_PROTECTED_TYPE(uint16_t) mcuxClCrc_computeCRC16(const uint8_t *pBytes, uint32_t length);
57
71MCUX_CSSL_FP_PROTECTED_TYPE(uint32_t) mcuxClCrc_computeCRC32(const uint8_t *pBytes, uint32_t length);
72 /* mcuxClCrc_Functions */
76
77#ifdef __cplusplus
78} /* extern "C" */
79#endif
80
81#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.
uint32_t mcuxClCrc_computeCRC32(const uint8_t *pBytes, uint32_t length)
Compute a 32-bit CRC checksum.
#define MCUX_CSSL_FP_FUNCTION_DECL(...)
Declaration of a flow protected function.
Definition mcuxCsslFlowProtection.h:166
#define MCUX_CSSL_FP_PROTECTED_TYPE(resultType)
Based on a given base type, builds a return type with flow protection.
Definition mcuxCsslFlowProtection.h:138