MCUX CLNS
MCUX Crypto Library Normal Secure
 
Loading...
Searching...
No Matches
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
78#define MCUX_CSSL_SC_BALANCING_VALUE_TYPE_IMPL \
79 uint32_t
80
81/****************************************************************************/
82/* Initialization */
83/****************************************************************************/
84
90#define MCUX_CSSL_SC_ALLOC_IMPL() \
91 /* intentionally empty */
92
100#define MCUX_CSSL_SC_INIT_IMPL(value) \
101 /* intentionally empty */
102
103/****************************************************************************/
104/* Check */
105/****************************************************************************/
106
115#define MCUX_CSSL_SC_CHECK_IMPL(value) \
116 (MCUX_CSSL_SC_CHECK_PASSED_IMPL)
117
118/****************************************************************************/
119/* Counter increment */
120/****************************************************************************/
136#define MCUX_CSSL_SC_ADD_IMPL(value) \
137 /* intentionally empty */
138
148#define MCUX_CSSL_SC_ADD_ON_CALL_IMPL(value) \
149 /* intentionally empty */
150
158#define MCUX_CSSL_SC_ADD_0X1_IMPL() \
159 /* intentionally empty */
160
168#define MCUX_CSSL_SC_ADD_0X10_IMPL() \
169 /* intentionally empty */
170
178#define MCUX_CSSL_SC_ADD_0X100_IMPL() \
179 /* intentionally empty */
180
181/****************************************************************************/
182/* Counter decrement */
183/****************************************************************************/
199#define MCUX_CSSL_SC_SUB_IMPL(value) \
200 /* intentionally empty */
201
209#define MCUX_CSSL_SC_SUB_0X1_IMPL() \
210 /* intentionally empty */
211
219#define MCUX_CSSL_SC_SUB_0X10_IMPL() \
220 /* intentionally empty */
221
229#define MCUX_CSSL_SC_SUB_0X100_IMPL() \
230 /* intentionally empty */
231
232/****************************************************************************/
233/* Direct access (optional) */
234/****************************************************************************/
255#define MCUX_CSSL_SC_VALUE_IMPL() \
256 1/0 /* not supported */
257
270#define MCUX_CSSL_SC_ASSIGN_IMPL(value) \
271 /* intentionally empty */
272
273
274#endif /* MCUXCSSLSECURECOUNTER_NONE_H_ */