MCUX CLNS
MCUX Crypto Library Normal Secure
mcuxCsslSecureCounter_None.h
Go to the documentation of this file.
1 /*--------------------------------------------------------------------------*/
2 /* Copyright 2020-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 MCUXCSSLSECURECOUNTER_NONE_H_
20 #define MCUXCSSLSECURECOUNTER_NONE_H_
21 
39 /****************************************************************************/
40 /* Constants */
41 /****************************************************************************/
42 
48 #define MCUX_CSSL_SC_CHECK_PASSED_IMPL (0xA5A5A5A5u)
49 
55 #define MCUX_CSSL_SC_CHECK_FAILED_IMPL (~ MCUX_CSSL_SC_CHECK_PASSED_IMPL)
56 
62 #define MCUX_CSSL_SC_COUNTER_TYPE_IMPL \
63  uint32_t
64 
70 #define MCUX_CSSL_SC_VALUE_TYPE_IMPL \
71  static const uint32_t
72 
73 /****************************************************************************/
74 /* Initialization */
75 /****************************************************************************/
76 
82 #define MCUX_CSSL_SC_ALLOC_IMPL() \
83  /* intentionally empty */
84 
92 #define MCUX_CSSL_SC_INIT_IMPL(value) \
93  /* intentionally empty */
94 
95 /****************************************************************************/
96 /* Check */
97 /****************************************************************************/
98 
107 #define MCUX_CSSL_SC_CHECK_IMPL(value) \
108  (MCUX_CSSL_SC_CHECK_PASSED_IMPL)
109 
110 /****************************************************************************/
111 /* Counter increment */
112 /****************************************************************************/
128 #define MCUX_CSSL_SC_ADD_IMPL(value) \
129  /* intentionally empty */
130 
140 #define MCUX_CSSL_SC_ADD_ON_CALL_IMPL(value) \
141  /* intentionally empty */
142 
150 #define MCUX_CSSL_SC_ADD_0X1_IMPL() \
151  /* intentionally empty */
152 
160 #define MCUX_CSSL_SC_ADD_0X10_IMPL() \
161  /* intentionally empty */
162 
170 #define MCUX_CSSL_SC_ADD_0X100_IMPL() \
171  /* intentionally empty */
172 
173 /****************************************************************************/
174 /* Counter decrement */
175 /****************************************************************************/
191 #define MCUX_CSSL_SC_SUB_IMPL(value) \
192  /* intentionally empty */
193 
201 #define MCUX_CSSL_SC_SUB_0X1_IMPL() \
202  /* intentionally empty */
203 
211 #define MCUX_CSSL_SC_SUB_0X10_IMPL() \
212  /* intentionally empty */
213 
221 #define MCUX_CSSL_SC_SUB_0X100_IMPL() \
222  /* intentionally empty */
223 
224 /****************************************************************************/
225 /* Direct access (optional) */
226 /****************************************************************************/
247 #define MCUX_CSSL_SC_VALUE_IMPL() \
248  1/0 /* not supported */
249 
262 #define MCUX_CSSL_SC_ASSIGN_IMPL(value) \
263  /* intentionally empty */
264 
265 
266 #endif /* MCUXCSSLSECURECOUNTER_NONE_H_ */