MCUX CLNS
MCUX Crypto Library Normal Secure
Loading...
Searching...
No Matches
mcuxClHashModes_Algorithms.h
Go to the documentation of this file.
1/*--------------------------------------------------------------------------*/
2/* Copyright 2021-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
37
38#ifndef MCUXCLHASHMODES_ALGORITHMS_H_
39#define MCUXCLHASHMODES_ALGORITHMS_H_
40
41#include <mcuxClConfig.h> // Exported features flags header
42#include <mcuxClCore_Platform.h>
43#include <mcuxCsslAnalysis.h>
44#include <mcuxClHash_Types.h>
45
46#ifdef __cplusplus
47extern "C" {
48#endif
49
56
57MCUX_CSSL_ANALYSIS_START_SUPPRESS_DECLARED_BUT_NEVER_REFERENCED("Declaration provided for externally accessible API")
58MCUX_CSSL_ANALYSIS_START_PATTERN_DESCRIPTIVE_IDENTIFIER()
59
60
61
67
73
74
75
76
77
78
79
80
81#ifdef MCUXCL_FEATURE_ELS_SHA_DIRECT
82
88extern const mcuxClHash_AlgorithmDescriptor_t mcuxClHash_AlgorithmDescriptor_Sha224_direct;
89
95static mcuxClHash_Algo_t mcuxClHash_Algorithm_Sha224_direct = &mcuxClHash_AlgorithmDescriptor_Sha224_direct;
96#endif /* MCUXCL_FEATURE_ELS_SHA_DIRECT */
97
104
111
112#ifdef MCUXCL_FEATURE_ELS_SHA_DIRECT
113
119extern const mcuxClHash_AlgorithmDescriptor_t mcuxClHash_AlgorithmDescriptor_Sha256_direct;
120
126static mcuxClHash_Algo_t mcuxClHash_Algorithm_Sha256_direct = &mcuxClHash_AlgorithmDescriptor_Sha256_direct;
127#endif /* MCUXCL_FEATURE_ELS_SHA_DIRECT */
128
135
142
143#ifdef MCUXCL_FEATURE_ELS_SHA_DIRECT
144
150extern const mcuxClHash_AlgorithmDescriptor_t mcuxClHash_AlgorithmDescriptor_Sha384_direct;
151
157static mcuxClHash_Algo_t mcuxClHash_Algorithm_Sha384_direct = &mcuxClHash_AlgorithmDescriptor_Sha384_direct;
158#endif /* MCUXCL_FEATURE_ELS_SHA_DIRECT */
159
166
173
174#ifdef MCUXCL_FEATURE_ELS_SHA_DIRECT
175
181extern const mcuxClHash_AlgorithmDescriptor_t mcuxClHash_AlgorithmDescriptor_Sha512_direct;
182
188static mcuxClHash_Algo_t mcuxClHash_Algorithm_Sha512_direct = &mcuxClHash_AlgorithmDescriptor_Sha512_direct;
189#endif /* MCUXCL_FEATURE_ELS_SHA_DIRECT */
190
197
204#ifdef MCUXCL_FEATURE_ELS_SHA_DIRECT
205
211extern const mcuxClHash_AlgorithmDescriptor_t mcuxClHash_AlgorithmDescriptor_Sha512_224_direct;
212
218static mcuxClHash_Algo_t mcuxClHash_Algorithm_Sha512_224_direct = &mcuxClHash_AlgorithmDescriptor_Sha512_224_direct;
219#endif /* MCUXCL_FEATURE_ELS_SHA_DIRECT */
220
227
234#ifdef MCUXCL_FEATURE_ELS_SHA_DIRECT
235
241extern const mcuxClHash_AlgorithmDescriptor_t mcuxClHash_AlgorithmDescriptor_Sha512_256_direct;
242
248static mcuxClHash_Algo_t mcuxClHash_Algorithm_Sha512_256_direct = &mcuxClHash_AlgorithmDescriptor_Sha512_256_direct;
249#endif /* MCUXCL_FEATURE_ELS_SHA_DIRECT */
250
257
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283MCUX_CSSL_ANALYSIS_STOP_PATTERN_DESCRIPTIVE_IDENTIFIER()
284MCUX_CSSL_ANALYSIS_STOP_SUPPRESS_DECLARED_BUT_NEVER_REFERENCED()
285
287
288#ifdef __cplusplus
289} /* extern "C" */
290#endif
291
292#endif /* MCUXCLHASHMODES_ALGORITHMS_H_ */
Type definitions for the mcuxClHash component.
const mcuxClHash_AlgorithmDescriptor_t *const mcuxClHash_Algo_t
Hash mode/algorithm type.
Definition mcuxClHash_Types.h:70
struct mcuxClHash_AlgorithmDescriptor mcuxClHash_AlgorithmDescriptor_t
Hash mode/algorithm descriptor type.
Definition mcuxClHash_Types.h:62
const mcuxClHash_AlgorithmDescriptor_t mcuxClHash_AlgorithmDescriptor_Sha256
Sha-256 algorithm descriptor Sha-256 hash calculation using the Hash functionality of ELS,...
const mcuxClHash_AlgorithmDescriptor_t mcuxClHash_AlgorithmDescriptor_Sha384
Sha-384 algorithm descriptor Sha-384 hash calculation using the Hash functionality of ELS,...
static mcuxClHash_Algo_t mcuxClHash_Algorithm_Sha512_224
Sha-512/224 algorithm Sha-512/224 hash calculation using the Hash functionality of ELS,...
Definition mcuxClHashModes_Algorithms.h:233
const mcuxClHash_AlgorithmDescriptor_t mcuxClHash_AlgorithmDescriptor_C_Sha1
Sha-1 algorithm descriptor Sha-1 hash calculation using an underlying software implementation of SHA-...
static mcuxClHash_Algo_t mcuxClHash_Algorithm_Sha224
Sha-224 algorithm Sha-224 hash calculation using the Hash functionality of ELS, it does not support R...
Definition mcuxClHashModes_Algorithms.h:110
const mcuxClHash_AlgorithmDescriptor_t mcuxClHash_AlgorithmDescriptor_Sha512
Sha-512 algorithm descriptor Sha-512 hash calculation using the Hash functionality of ELS,...
const mcuxClHash_AlgorithmDescriptor_t mcuxClHash_AlgorithmDescriptor_Sha512_256
Sha-512/256 algorithm descriptor Sha-512/256 hash calculation using the Hash functionality of ELS,...
const mcuxClHash_AlgorithmDescriptor_t mcuxClHash_AlgorithmDescriptor_Sha224
Sha-224 algorithm descriptor Sha-224 hash calculation using the Hash functionality of ELS,...
static mcuxClHash_Algo_t mcuxClHash_Algorithm_Sha256
Sha-256 algorithm Sha-256 hash calculation using the Hash functionality of ELS, it supports RTF.
Definition mcuxClHashModes_Algorithms.h:141
static mcuxClHash_Algo_t mcuxClHash_Algorithm_Sha1
Sha-1 algorithm Sha-1 hash calculation using an underlying software implementation of SHA-1.
Definition mcuxClHashModes_Algorithms.h:72
static mcuxClHash_Algo_t mcuxClHash_Algorithm_Sha384
Sha-384 algorithm Sha-384 hash calculation using the Hash functionality of ELS, it supports RTF.
Definition mcuxClHashModes_Algorithms.h:172
const mcuxClHash_AlgorithmDescriptor_t mcuxClHash_AlgorithmDescriptor_Sha512_224
Sha-512/224 algorithm descriptor Sha-512/224 hash calculation using the Hash functionality of ELS,...
static mcuxClHash_Algo_t mcuxClHash_Algorithm_Sha512_256
Sha-512/256 algorithm Sha-512/256 hash calculation using the Hash functionality of ELS,...
Definition mcuxClHashModes_Algorithms.h:263
static mcuxClHash_Algo_t mcuxClHash_Algorithm_Sha512
Sha-512 algorithm Sha-512 hash calculation using the Hash functionality of ELS, it supports RTF.
Definition mcuxClHashModes_Algorithms.h:203