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-2024 NXP */
3/* */
4/* SPDX-License-Identifier: BSD-3-Clause */
5/* */
6/* Redistribution and use in source and binary forms, with or without */
7/* modification, are permitted provided that the following conditions are */
8/* met: */
9/* */
10/* 1. Redistributions of source code must retain the above copyright */
11/* notice, this list of conditions and the following disclaimer. */
12/* */
13/* 2. Redistributions in binary form must reproduce the above copyright */
14/* notice, this list of conditions and the following disclaimer in the */
15/* documentation and/or other materials provided with the distribution. */
16/* */
17/* 3. Neither the name of the copyright holder nor the names of its */
18/* contributors may be used to endorse or promote products derived from */
19/* this software without specific prior written permission. */
20/* */
21/* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS */
22/* IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED */
23/* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A */
24/* PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT */
25/* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, */
26/* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED */
27/* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR */
28/* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF */
29/* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING */
30/* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS */
31/* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
32/*--------------------------------------------------------------------------*/
33
38
39#ifndef MCUXCSSLSECURECOUNTER_NONE_H_
40#define MCUXCSSLSECURECOUNTER_NONE_H_
41
49
50
58
59/****************************************************************************/
60/* Constants */
61/****************************************************************************/
62
68#define MCUX_CSSL_SC_CHECK_PASSED_IMPL (0xA5A5A5A5u)
69
75#define MCUX_CSSL_SC_CHECK_FAILED_IMPL (~ MCUX_CSSL_SC_CHECK_PASSED_IMPL)
76
82#define MCUX_CSSL_SC_COUNTER_TYPE_IMPL \
83 uint32_t
84
90#define MCUX_CSSL_SC_VALUE_TYPE_IMPL \
91 static const uint32_t
92
98#define MCUX_CSSL_SC_BALANCING_VALUE_TYPE_IMPL \
99 uint32_t
100
101/****************************************************************************/
102/* Initialization */
103/****************************************************************************/
104
110#define MCUX_CSSL_SC_ALLOC_IMPL() \
111 /* intentionally empty */
112
120#define MCUX_CSSL_SC_INIT_IMPL(value) \
121 /* intentionally empty */
122
123/****************************************************************************/
124/* Check */
125/****************************************************************************/
126
135#define MCUX_CSSL_SC_CHECK_IMPL(reference) \
136 (MCUX_CSSL_SC_CHECK_PASSED_IMPL)
137
138/****************************************************************************/
139/* Counter increment */
140/****************************************************************************/
146
156#define MCUX_CSSL_SC_ADD_IMPL(value) \
157 /* intentionally empty */
158
168#define MCUX_CSSL_SC_ADD_ON_CALL_IMPL(value) \
169 /* intentionally empty */
170
178#define MCUX_CSSL_SC_ADD_0X1_IMPL() \
179 /* intentionally empty */
180
188#define MCUX_CSSL_SC_ADD_0X10_IMPL() \
189 /* intentionally empty */
190
198#define MCUX_CSSL_SC_ADD_0X100_IMPL() \
199 /* intentionally empty */
200
201/****************************************************************************/
202/* Counter decrement */
203/****************************************************************************/
209
219#define MCUX_CSSL_SC_SUB_IMPL(value) \
220 /* intentionally empty */
221
229#define MCUX_CSSL_SC_SUB_0X1_IMPL() \
230 /* intentionally empty */
231
239#define MCUX_CSSL_SC_SUB_0X10_IMPL() \
240 /* intentionally empty */
241
249#define MCUX_CSSL_SC_SUB_0X100_IMPL() \
250 /* intentionally empty */
251
252/****************************************************************************/
253/* Direct access (optional) */
254/****************************************************************************/
263
275#define MCUX_CSSL_SC_VALUE_IMPL() \
276 1/0 /* not supported */
277
290#define MCUX_CSSL_SC_ASSIGN_IMPL(value) \
291 /* intentionally empty */
292
293
294#endif /* MCUXCSSLSECURECOUNTER_NONE_H_ */