MCUX CLNS
MCUX Crypto Library Normal Secure
Loading...
Searching...
No Matches
mcuxClSession_Functions.h
Go to the documentation of this file.
1/*--------------------------------------------------------------------------*/
2/* Copyright 2020-2025 NXP */
3/* */
4/* NXP Confidential and Proprietary. This software is owned or controlled */
5/* by NXP and may only be used strictly in accordance with the applicable */
6/* license terms. By expressly accepting such terms or by downloading, */
7/* installing, activating and/or otherwise using the software, you are */
8/* agreeing that you have read, and that you agree to comply with and are */
9/* bound by, such license terms. If you do not agree to be bound by the */
10/* applicable license terms, then you may not retain, install, activate or */
11/* otherwise use the software. */
12/*--------------------------------------------------------------------------*/
13
18
19#ifndef MCUXCLSESSION_FUNCTIONS_H_
20#define MCUXCLSESSION_FUNCTIONS_H_
21
22#include <mcuxClCore_Platform.h>
25#include <mcuxClSession_Types.h>
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
32/**********************************************
33 * FUNCTIONS
34 **********************************************/
41
62 uint32_t * const pCpuWaBuffer,
63 uint32_t cpuWaLength,
64 uint32_t * const pPkcWaBuffer,
65 uint32_t pkcWaLength
66 /* TBD: sclRandom_Context_t * const rngCtx */
67);
68
81 mcuxClResource_Context_t * pResourceCtx
82);
83
98 mcuxClSession_Channels_t dmaChannels,
99 mcuxClSession_Callback_t pUserCallback,
100 void * pUserData
101);
102
103
104
105
106
107
121);
122
138);
139
152 mcuxClRandom_Mode_t randomMode,
153 mcuxClRandom_Context_t randomCtx
154);
155
156
157
158
178);
179
180
181 /* mcuxClSession_Functions */
185
186
187#ifdef __cplusplus
188} /* extern "C" */
189#endif
190
191#endif /* MCUXCLSESSION_FUNCTIONS_H_ */
Definition of function identifiers for the flow protection mechanism.
Type definitions for the mcuxClResource component.
Type definitions for the mcuxClSession component.
Provides the API for the CSSL flow protection mechanism.
const mcuxClRandom_ModeDescriptor_t * mcuxClRandom_Mode_t
Random data generation mode/algorithm type.
Definition mcuxClRandom_Types.h:94
mcuxClRandom_ContextDescriptor_t * mcuxClRandom_Context_t
Random context type.
Definition mcuxClRandom_Types.h:71
struct mcuxClResource_Context mcuxClResource_Context_t
Resource context type.
Definition mcuxClResource_Types.h:47
mcuxClSession_Status_t mcuxClSession_cleanup(mcuxClSession_Handle_t pSession)
Clean up a Crypto Library session.
mcuxClSession_Status_t mcuxClSession_destroy(mcuxClSession_Handle_t pSession)
Destroy a Crypto Library session.
mcuxClSession_Status_t mcuxClSession_cleanupOnError(mcuxClSession_Handle_t pSession)
Clean up HW Resources after error case.
mcuxClSession_Status_t mcuxClSession_configure_job(mcuxClSession_Handle_t session, mcuxClSession_Channels_t dmaChannels, mcuxClSession_Callback_t pUserCallback, void *pUserData)
Configure the parameters for non-blocking operations (jobs) in this session.
mcuxClSession_Status_t mcuxClSession_setResource(mcuxClSession_Handle_t session, mcuxClResource_Context_t *pResourceCtx)
Set the resource context in a Crypto Library session.
mcuxClSession_Status_t mcuxClSession_init(mcuxClSession_Handle_t pSession, uint32_t *const pCpuWaBuffer, uint32_t cpuWaLength, uint32_t *const pPkcWaBuffer, uint32_t pkcWaLength)
Initialize a Crypto Library session.
mcuxClSession_Status_t mcuxClSession_setRandom(mcuxClSession_Handle_t session, mcuxClRandom_Mode_t randomMode, mcuxClRandom_Context_t randomCtx)
Function to switch to another random configuration.
mcuxClSession_Descriptor_t *const mcuxClSession_Handle_t
Type for mcuxClSession Handle.
Definition mcuxClSession_Types.h:98
void(* mcuxClSession_Callback_t)(uint32_t status, void *data)
Session callback function pointer type.
Definition mcuxClSession_Types.h:123
uint32_t mcuxClSession_Status_t
Type for mcuxClSession status codes.
Definition mcuxClSession_Types.h:66
#define MCUX_CSSL_FP_FUNCTION_DECL(...)
Declaration of a flow protected function.
Definition mcuxCsslFlowProtection.h:166
#define MCUX_CSSL_FP_PROTECTED_TYPE(resultType)
Based on a given base type, builds a return type with flow protection.
Definition mcuxCsslFlowProtection.h:138
Session channels type.
Definition mcuxClSession_Types.h:113