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-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 MCUXCLSESSION_TYPES_H_
20#define MCUXCLSESSION_TYPES_H_
21
22#include <mcuxClCore_Platform.h>
25
26#include <mcuxClRandom_Types.h>
27
28/**********************************************
29 * CONSTANTS
30 **********************************************/
42#define MCUXCLSESSION_STATUS_OK ((mcuxClSession_Status_t) 0x0EEE2E03u)
43#define MCUXCLSESSION_STATUS_ERROR ((mcuxClSession_Status_t) 0x0EEE5330u)
44#define MCUXCLSESSION_STATUS_HW_UNAVAILABLE ((mcuxClSession_Status_t) 0x0EEE5334u)
51#define MCUXCLSESSION_RTF_UPDATE_TRUE ((mcuxClSession_Rtf_t) 0xF0F00F0Fu )
52#define MCUXCLSESSION_RTF_UPDATE_FALSE ((mcuxClSession_Rtf_t) 0x0F0F0F0Fu )
61/* mcuxClSession_Constants */
62
63/**********************************************
64 * TYPEDEFS
65 **********************************************/
76typedef uint32_t mcuxClSession_Status_t;
77
82
86typedef uint32_t mcuxClSession_Rtf_t;
87
92{
93 uint32_t * buffer;
94 uint32_t size;
95 uint32_t used;
96 uint32_t dirty;
98
103
107struct mcuxClSession_Descriptor; /* forward declaration */
109
114
115
116
121{
126 uint8_t *pRtf;
127};
128
129 /* mcuxClSession_Types */
133
134#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.
mcuxClSession_Status_t mcuxClSession_Status_Protected_t
Deprecated type for mcuxClSession protected status codes.
Definition mcuxClSession_Types.h:81
mcuxClSession_Descriptor_t *const mcuxClSession_Handle_t
Type for mcuxClSession Handle.
Definition mcuxClSession_Types.h:113
uint32_t mcuxClSession_Status_t
Type for mcuxClSession status codes.
Definition mcuxClSession_Types.h:76
uint32_t mcuxClSession_SecurityOptions_t
Type for Session security options.
Definition mcuxClSession_Types.h:102
uint32_t mcuxClSession_Rtf_t
Type for mcuxClSession RTF configuration flags.
Definition mcuxClSession_Types.h:86
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:81
Random config structure.
Definition mcuxClRandom_Types.h:110
Type for mcuxClSession workareas flags.
Definition mcuxClSession_Types.h:92
uint32_t size
Size of the workarea buffer in words (uint32_t)
Definition mcuxClSession_Types.h:94
uint32_t dirty
Maximum used portion of the workarea buffer in words (uint32_t)
Definition mcuxClSession_Types.h:96
uint32_t used
Used portion of the workarea buffer in words (uint32_t)
Definition mcuxClSession_Types.h:95
uint32_t * buffer
Pointer to the starting address of the workarea buffer.
Definition mcuxClSession_Types.h:93
Structure for mcuxClSession Descriptor.
Definition mcuxClSession_Types.h:121
mcuxClRandom_Config_t randomCfg
Configuration of the Rng (contexts and mode)
Definition mcuxClSession_Types.h:124
mcuxClSession_WorkArea_t pkcWa
Workarea for the PKC.
Definition mcuxClSession_Types.h:123
mcuxClSession_WorkArea_t cpuWa
Workarea for the CPU.
Definition mcuxClSession_Types.h:122
mcuxClSession_Rtf_t rtf
Configuration of the RTF.
Definition mcuxClSession_Types.h:125