MCUX CLNS
MCUX Crypto Library Normal Secure
Loading...
Searching...
No Matches
mcuxClRandomModes_Functions_PatchMode.h
1/*--------------------------------------------------------------------------*/
2/* Copyright 2021-2023, 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
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
33
34/* Interface definition for a custom RNG function */
35typedef mcuxClRandom_Status_t (* mcuxClRandomModes_CustomGenerateAlgorithm_t)(
37 mcuxClRandom_Context_t pCustomCtx,
38 mcuxCl_Buffer_t pOut,
39 uint32_t outLength
40);
41
61 mcuxClRandomModes_CustomGenerateAlgorithm_t customGenerateAlgorithm,
62 mcuxClRandom_Context_t pCustomCtx,
63 uint32_t securityStrength
64);
65
67
68#ifdef __cplusplus
69} /* extern "C" */
70#endif
71
72#endif /* MCUXCLRANDOMMODES_FUNCTIONS_PATCHMODE_H_ */
Top-level include file for the mcuxClBuffer component.
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:47
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
mcuxClRandom_Status_t mcuxClRandomModes_createPatchMode(mcuxClRandom_ModeDescriptor_t *patchMode, mcuxClRandomModes_CustomGenerateAlgorithm_t customGenerateAlgorithm, mcuxClRandom_Context_t pCustomCtx, uint32_t securityStrength)
This function creates a PATCH_MODE descriptor.
mcuxClSession_Descriptor_t *const mcuxClSession_Handle_t
Type for mcuxClSession Handle.
Definition mcuxClSession_Types.h:98
#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