MCUX CLNS
MCUX Crypto Library Normal Secure
 
Loading...
Searching...
No Matches
mcuxClRandomModes_Functions_PatchMode.h
1/*--------------------------------------------------------------------------*/
2/* Copyright 2021-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
14#ifndef MCUXCLRANDOMMODES_FUNCTIONS_PATCHMODE_H_
15#define MCUXCLRANDOMMODES_FUNCTIONS_PATCHMODE_H_
16
17#include <mcuxClConfig.h> // Exported features flags header
18
19#include <mcuxClSession.h>
20#include <mcuxClRandom_Types.h>
21#include <mcuxClBuffer.h>
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
41/* Interface definition for a custom RNG function */
42typedef mcuxClRandom_Status_t (* mcuxClRandomModes_CustomGenerateAlgorithm_t)(
44 mcuxClRandom_Context_t pCustomCtx,
45 mcuxCl_Buffer_t pOut,
46 uint32_t outLength
47);
48
67MCUX_CSSL_FP_FUNCTION_DECL(mcuxClRandomModes_createPatchMode)
68MCUX_CSSL_FP_PROTECTED_TYPE(mcuxClRandom_Status_t) mcuxClRandomModes_createPatchMode(
70 mcuxClRandomModes_CustomGenerateAlgorithm_t customGenerateAlgorithm,
71 mcuxClRandom_Context_t pCustomCtx,
72 uint32_t securityStrength
73);
74
75
76#ifdef __cplusplus
77} /* extern "C" */
78#endif
79
80#endif /* MCUXCLRANDOMMODES_FUNCTIONS_PATCHMODE_H_ */
Provides the API for the CL buffer types.
Type definitions of mcuxClRandom component.
Top-level include file for the mcuxClSession component.
uint8_t * mcuxCl_Buffer_t
Input/output buffer type.
Definition mcuxClBuffer_Pointer.h:55
uint32_t mcuxClRandom_Status_t
Type for status codes of mcuxClRandom component functions.
Definition mcuxClRandom_Types.h:48
mcuxClRandom_ContextDescriptor_t * mcuxClRandom_Context_t
Random context type.
Definition mcuxClRandom_Types.h:71
struct mcuxClRandom_ModeDescriptor mcuxClRandom_ModeDescriptor_t
Random data generation mode/algorithm descriptor type.
Definition mcuxClRandom_Types.h:87
mcuxClSession_Descriptor_t *const mcuxClSession_Handle_t
Type for mcuxClSession Handle.
Definition mcuxClSession_Types.h:113
#define MCUX_CSSL_FP_FUNCTION_DECL(...)
Declaration of a flow protected function.
Definition mcuxCsslFlowProtection.h:125
#define MCUX_CSSL_FP_PROTECTED_TYPE(resultType)
Based on a given base type, builds a return type with flow protection.
Definition mcuxCsslFlowProtection.h:81