MCUX CLNS
MCUX Crypto Library Normal Secure
Loading...
Searching...
No Matches
mcuxClRandomModes_Constants.h
Go to the documentation of this file.
1/*--------------------------------------------------------------------------*/
2/* Copyright 2020-2023 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 MCUXCLRANDOMMODES_CONSTANTS_H_
40#define MCUXCLRANDOMMODES_CONSTANTS_H_
41
42#include <mcuxClConfig.h> // Exported features flags header
43
44#include <mcuxClRandom_Types.h>
45
46#ifdef __cplusplus
47extern "C" {
48#endif
49
50/**********************************************************/
51/* Values for reseeds */
52/**********************************************************/
53
54
55/**********************************************************/
56/* Types of mcuxClRandom */
57/**********************************************************/
64
65MCUX_CSSL_ANALYSIS_START_PATTERN_EXTERNAL_API_DECLARATIONS()
66
67
68#ifdef MCUXCL_FEATURE_RANDOMMODES_SECSTRENGTH_128
69
79extern const mcuxClRandom_ModeDescriptor_t mcuxClRandomModes_mdCtrDrbg_AES128_DRG3;
80static const mcuxClRandom_Mode_t mcuxClRandomModes_Mode_CtrDrbg_AES128_DRG3 =
81 &mcuxClRandomModes_mdCtrDrbg_AES128_DRG3;
82
93#define mcuxClRandomModes_Mode_CtrDrbg_AES128_DRG4 mcuxClRandomModes_Mode_CtrDrbg_AES128_DRG3
94
95#endif /* MCUXCL_FEATURE_RANDOMMODES_SECSTRENGTH_128 */
96
97#ifdef MCUXCL_FEATURE_RANDOMMODES_SECSTRENGTH_192
98
108extern const mcuxClRandom_ModeDescriptor_t mcuxClRandomModes_mdCtrDrbg_AES192_DRG3;
109static const mcuxClRandom_Mode_t mcuxClRandomModes_Mode_CtrDrbg_AES192_DRG3 =
110 &mcuxClRandomModes_mdCtrDrbg_AES192_DRG3;
111
122#define mcuxClRandomModes_Mode_CtrDrbg_AES192_DRG4 mcuxClRandomModes_Mode_CtrDrbg_AES192_DRG3
123
124#endif /* MCUXCL_FEATURE_RANDOMMODES_SECSTRENGTH_192 */
125
126#ifdef MCUXCL_FEATURE_RANDOMMODES_SECSTRENGTH_256
127
137extern const mcuxClRandom_ModeDescriptor_t mcuxClRandomModes_mdCtrDrbg_AES256_DRG3;
138static const mcuxClRandom_Mode_t mcuxClRandomModes_Mode_CtrDrbg_AES256_DRG3 =
139 &mcuxClRandomModes_mdCtrDrbg_AES256_DRG3;
140
151#define mcuxClRandomModes_Mode_CtrDrbg_AES256_DRG4 mcuxClRandomModes_Mode_CtrDrbg_AES256_DRG3
152
162#define mcuxClRandomModes_Mode_CtrDrbg_AES256 mcuxClRandomModes_Mode_CtrDrbg_AES256_DRG3
163
164#endif /* MCUXCL_FEATURE_RANDOMMODES_SECSTRENGTH_256 */
165
166
167
168
169MCUX_CSSL_ANALYSIS_STOP_PATTERN_EXTERNAL_API_DECLARATIONS()
170
171 /* mcuxClRandom_Types */
174
175#ifdef __cplusplus
176} /* extern "C" */
177#endif
178
179#endif /* MCUXCLRANDOMMODES_CONSTANTS_H_ */
Type definitions of mcuxClRandom component.
const mcuxClRandom_ModeDescriptor_t * mcuxClRandom_Mode_t
Random data generation mode/algorithm type.
Definition mcuxClRandom_Types.h:114
struct mcuxClRandom_ModeDescriptor mcuxClRandom_ModeDescriptor_t
Random data generation mode/algorithm descriptor type.
Definition mcuxClRandom_Types.h:107