MCUX CLNS
MCUX Crypto Library Normal Secure
Loading...
Searching...
No Matches
mcuxCsslDataIntegrity.h
Go to the documentation of this file.
1/*--------------------------------------------------------------------------*/
2/* Copyright 2023-2025 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
18
19#ifndef MCUXCSSLDATAINTEGRITY_H_
20#define MCUXCSSLDATAINTEGRITY_H_
21
22#include <mcuxClCore_Macros.h>
23
24/* Include the Secure Counter definitions */
26
27/* Include the actual implementation of the data integrity mechanism. */
29
37
38
44
45/****************************************************************************/
46/* Constants */
47/****************************************************************************/
48
55#define MCUX_CSSL_DI_CHECK_PASSED \
56 MCUX_CSSL_DI_CHECK_PASSED_IMPL
57
64#define MCUX_CSSL_DI_CHECK_FAILED \
65 MCUX_CSSL_DI_CHECK_FAILED_IMPL
66
67/****************************************************************************/
68/* Initialization */
69/****************************************************************************/
70
83#define MCUX_CSSL_DI_INIT(backupValue) \
84 MCUX_CSSL_DI_INIT_IMPL(backupValue)
85
86/****************************************************************************/
87/* Check */
88/****************************************************************************/
89
100#define MCUX_CSSL_DI_CHECK(reference) \
101 MCUX_CSSL_DI_CHECK_IMPL(reference)
102
118#define MCUX_CSSL_DI_CHECK_EXIT(id, reference, fail) \
119 MCUX_CSSL_DI_CHECK_EXIT_IMPL(id, reference, fail)
120
121/****************************************************************************/
122/* Updates */
123/****************************************************************************/
124
130
140#define MCUX_CSSL_DI_RECORD(identifier, value) \
141 MCUX_CSSL_DI_RECORD_IMPL(identifier, value)
142
152#define MCUX_CSSL_DI_EXPUNGE(identifier, value) \
153 MCUX_CSSL_DI_EXPUNGE_IMPL(identifier, value)
154
155/****************************************************************************/
156/* Prevent compiler optimization */
157/****************************************************************************/
158
167#define MCUX_CSSL_DI_DONOTOPTIMIZE(val) \
168 MCUXCLCORE_DONOTOPTIMIZE(val)
169
170#endif /* MCUXCSSLDATAINTEGRITY_H_ */
Definition of macros.
Selection of the implementation for the data integrity mechanism.
Provides the API for the CSSL secure counter mechanism.