MCUX CLNS
MCUX Crypto Library Normal Secure
Loading...
Searching...
No Matches
mcuxClSession_Types.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 MCUXCLSESSION_TYPES_H_
40#define MCUXCLSESSION_TYPES_H_
41
42#include <mcuxClCore_Platform.h>
45
46#include <mcuxClRandom_Types.h>
47
48/**********************************************
49 * CONSTANTS
50 **********************************************/
57
62#define MCUXCLSESSION_STATUS_OK ((mcuxClSession_Status_t) 0x0EEE2E03u)
63#define MCUXCLSESSION_STATUS_ERROR ((mcuxClSession_Status_t) 0x0EEE5330u)
64#define MCUXCLSESSION_STATUS_HW_UNAVAILABLE ((mcuxClSession_Status_t) 0x0EEE5334u)
66
71#define MCUXCLSESSION_RTF_UPDATE_TRUE ((mcuxClSession_Rtf_t) 0xF0F00F0Fu )
72#define MCUXCLSESSION_RTF_UPDATE_FALSE ((mcuxClSession_Rtf_t) 0x0F0F0F0Fu )
74
75
76
77
81/* mcuxClSession_Constants */
82
83/**********************************************
84 * TYPEDEFS
85 **********************************************/
92
96typedef uint32_t mcuxClSession_Status_t;
97
102
106typedef uint32_t mcuxClSession_Rtf_t;
107
112{
113 uint32_t * buffer;
114 uint32_t size;
115 uint32_t used;
116 uint32_t dirty;
118
123
127struct mcuxClSession_Descriptor; /* forward declaration */
128typedef struct mcuxClSession_Descriptor mcuxClSession_Descriptor_t;
129
133typedef mcuxClSession_Descriptor_t * const mcuxClSession_Handle_t;
134
135
136
148
149 /* mcuxClSession_Types */
153
154#endif /* MCUXCLSESSION_TYPES_H_ */
Definition of function identifiers for the flow protection mechanism.
Type definitions of mcuxClRandom component.
Provides the API for the CSSL flow protection mechanism.
struct mcuxClRandom_Config mcuxClRandom_Config_t
Random config type.
Definition mcuxClRandom_Types.h:142
mcuxClSession_Status_t mcuxClSession_Status_Protected_t
Deprecated type for mcuxClSession protected status codes.
Definition mcuxClSession_Types.h:101
mcuxClSession_Descriptor_t *const mcuxClSession_Handle_t
Type for mcuxClSession Handle.
Definition mcuxClSession_Types.h:133
uint32_t mcuxClSession_Status_t
Type for mcuxClSession status codes.
Definition mcuxClSession_Types.h:96
uint32_t mcuxClSession_SecurityOptions_t
Type for Session security options.
Definition mcuxClSession_Types.h:122
uint32_t mcuxClSession_Rtf_t
Type for mcuxClSession RTF configuration flags.
Definition mcuxClSession_Types.h:106
struct mcuxClSession_WorkArea mcuxClSession_WorkArea_t
Type for mcuxClSession workareas flags.
#define MCUX_CSSL_FP_PROTECTED_TYPE(resultType)
Based on a given base type, builds a return type with flow protection.
Definition mcuxCsslFlowProtection.h:101
Type for mcuxClSession workareas flags.
Definition mcuxClSession_Types.h:112
uint32_t size
Size of the workarea buffer in words (uint32_t).
Definition mcuxClSession_Types.h:114
uint32_t dirty
Maximum used portion of the workarea buffer in words (uint32_t).
Definition mcuxClSession_Types.h:116
uint32_t used
Used portion of the workarea buffer in words (uint32_t).
Definition mcuxClSession_Types.h:115
uint32_t * buffer
Pointer to the starting address of the workarea buffer.
Definition mcuxClSession_Types.h:113
Structure for mcuxClSession Descriptor.
Definition mcuxClSession_Types.h:141
mcuxClRandom_Config_t randomCfg
Configuration of the Rng (contexts and mode).
Definition mcuxClSession_Types.h:144
mcuxClSession_WorkArea_t pkcWa
Workarea for the PKC.
Definition mcuxClSession_Types.h:143
mcuxClSession_WorkArea_t cpuWa
Workarea for the CPU.
Definition mcuxClSession_Types.h:142
mcuxClSession_Rtf_t rtf
Configuration of the RTF.
Definition mcuxClSession_Types.h:145