MCUX CLNS
MCUX Crypto Library Normal Secure
 
Loading...
Searching...
No Matches
mcuxCsslSecureCounter_Impl.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_IMPL_H_
20#define MCUXCSSLSECURECOUNTER_IMPL_H_
21
22/* Include the configuration for the secure counter mechanism. */
24
25/* Include the selected implementation of the secure counter mechanism. */
26#if defined(MCUX_CSSL_SC_USE_HW_CDOG) && (1 == MCUX_CSSL_SC_USE_HW_CDOG)
27 #include <mcuxCsslSecureCounter_HardwareAddresses.h>
28 #include <mcuxCsslSecureCounter_HW_CDOG.h>
29#elif defined(MCUX_CSSL_SC_USE_HYBRID_LOCAL_CDOG) && (1 == MCUX_CSSL_SC_USE_HYBRID_LOCAL_CDOG)
30 #include <mcuxCsslSecureCounter_HardwareAddresses.h>
31 #include <mcuxCsslSecureCounter_Hybrid_LocalCDOG.h>
32#elif defined(MCUX_CSSL_SC_USE_HW_S3SCM) && (1 == MCUX_CSSL_SC_USE_HW_S3SCM)
33 #include <mcuxCsslSecureCounter_HardwareAddresses.h>
34 #include <mcuxCsslSecureCounter_HW_S3SCM.h>
35#elif defined(MCUX_CSSL_SC_USE_HW_SCM) && (1 == MCUX_CSSL_SC_USE_HW_SCM)
36 #include <mcuxCsslSecureCounter_HardwareAddresses.h>
37 #include <mcuxCsslSecureCounter_HW_SCM.h>
38#elif defined(MCUX_CSSL_SC_USE_SW_LOCAL) && (1 == MCUX_CSSL_SC_USE_SW_LOCAL)
40#elif defined(MCUX_CSSL_SC_USE_SW_CONTEXT) && (1 == MCUX_CSSL_SC_USE_SW_CONTEXT)
41 #include <mcuxCsslSecureCounter_SW_Context.h>
42#elif defined(MCUX_CSSL_SC_USE_SW_CALLBACK) && (1 == MCUX_CSSL_SC_USE_SW_CALLBACK)
43 #include <mcuxCsslSecureCounter_SW_Callback.h>
44#elif defined(MCUX_CSSL_SC_USE_SW_GLOBAL) && (1 == MCUX_CSSL_SC_USE_SW_GLOBAL)
45 #include <mcuxCsslSecureCounter_SW_Global.h>
46#elif defined(MCUX_CSSL_SC_USE_NONE) && (1 == MCUX_CSSL_SC_USE_NONE)
48#else
49 #error "No secure counter implementation found/configured."
50#endif
51
52#endif /* MCUXCSSLSECURECOUNTER_IMPL_H_ */
Configuration of the implementation for the secure counter mechanism.
Implementation that disables the CSSL secure counter mechanism.
SW implementation of the CSSL secure counter mechanism (using a local variable).