MCUX CLNS
MCUX Crypto Library Normal Secure
mcuxCsslDataIntegrity.h
Go to the documentation of this file.
1 /*--------------------------------------------------------------------------*/
2 /* Copyright 2023 NXP */
3 /* */
4 /* NXP Confidential. 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 license */
10 /* terms, then you may not retain, install, activate or otherwise use the */
11 /* software. */
12 /*--------------------------------------------------------------------------*/
13 
19 #ifndef MCUXCSSLDATAINTEGRITY_H_
20 #define MCUXCSSLDATAINTEGRITY_H_
21 
22 /* Include the actual implementation of the data integrity mechanism. */
24 
25 /* Include the Secure Counter definitions */
26 #include <mcuxCsslSecureCounter.h>
27 
43 /****************************************************************************/
44 /* Constants */
45 /****************************************************************************/
46 
53 #define MCUX_CSSL_DI_CHECK_PASSED \
54  MCUX_CSSL_DI_CHECK_PASSED_IMPL
55 
62 #define MCUX_CSSL_DI_CHECK_FAILED \
63  MCUX_CSSL_DI_CHECK_FAILED_IMPL
64 
71 #define MCUX_CSSL_DI_INIT_DEFAULT_VALUE \
72  (0x96969696u)
73 
74 /****************************************************************************/
75 /* Initialization */
76 /****************************************************************************/
77 
84 #define MCUX_CSSL_DI_ALLOC() \
85  MCUX_CSSL_DI_ALLOC_IMPL()
86 
95 #define MCUX_CSSL_DI_INIT(value) \
96  MCUX_CSSL_DI_INIT_IMPL(value)
97 
98 /****************************************************************************/
99 /* Check */
100 /****************************************************************************/
101 
112 #define MCUX_CSSL_DI_CHECK(reference) \
113  MCUX_CSSL_DI_CHECK_IMPL(reference)
114 
115 /****************************************************************************/
116 /* Updates */
117 /****************************************************************************/
118 
134 #define MCUX_CSSL_DI_RECORD(identifier, value) \
135  MCUX_CSSL_DI_RECORD_IMPL(identifier, value)
136 
146 #define MCUX_CSSL_DI_EXPUNGE(identifier, value) \
147  MCUX_CSSL_DI_EXPUNGE_IMPL(identifier, value)
148 
149 #endif /* MCUXCSSLDATAINTEGRITY_H_ */
Selection of the implementation for the data integrity mechanism.
Provides the API for the CSSL secure counter mechanism.