MCUX CLNS
MCUX Crypto Library Normal Secure
mcuxClPkc_Functions.h File Reference

APIs of mcuxClPkc component. More...

#include <mcuxClCore_Platform.h>
#include <mcuxClCore_FunctionIdentifiers.h>
#include <mcuxCsslFlowProtection.h>
#include <mcuxClSession.h>
#include <mcuxClPkc_Types.h>

Go to the source code of this file.

Data Structures

struct  mcuxClPkc_State_t
 Structure of PKC state backup. More...
 

Macros

#define MCUXCLPKC_FP_INITIALIZE(pState)
 Helper macro to call mcuxClPkc_Initialize with flow protection. More...
 
#define MCUXCLPKC_FP_DEINITIALIZE(pState)
 Helper macro to call mcuxClPkc_Deinitialize with flow protection. More...
 
#define MCUXCLPKC_FP_GENERATEUPTRT(pUPTRT, pBaseBuffer, bufferSize, noOfBuffer)
 Helper macro to call mcuxClPkc_GenerateUPTRT with flow protection. More...
 
#define MCUXCLPKC_FP_CALCFUP(pUPTR, ulen)
 Helper macro to call mcuxClPkc_CalcFup with flow protection. More...
 
#define MCUXCLPKC_FP_CALCFUP_OFFSET(pUPTR, skipLen, ulen)
 Helper macro to call mcuxClPkc_CalcFup (skipping first skipLen calculation(s)) with flow protection. More...
 
#define MCUXCLPKC_FP_WAITFORFINISH()
 Helper macro to call mcuxClPkc_WaitForFinish with flow protection. More...
 
#define MCUXCLPKC_FP_WAITFORREADY()
 Helper macro to call mcuxClPkc_WaitForReady with flow protection. More...
 

Typedefs

typedef const struct mcuxClPkc_FUPEntry * mcuxClPkc_PtrFUPEntry_t
 type of FUP program address. More...
 

Functions

 MCUX_CSSL_FP_FUNCTION_POINTER (mcuxClPkc_PkcInitializeEngine_t, typedef void(*mcuxClPkc_PkcInitializeEngine_t)(mcuxClPkc_State_t *pState))
 Function type for PKC initialization engine. More...
 
 MCUX_CSSL_FP_FUNCTION_POINTER (mcuxClPkc_PkcDeInitializeEngine_t, typedef void(*mcuxClPkc_PkcDeInitializeEngine_t)(const mcuxClPkc_State_t *pState))
 Function type for PKC deinitialization engine. More...
 
void mcuxClPkc_Initialize (mcuxClPkc_State_t *pState)
 initialize PKC hardware More...
 
void mcuxClPkc_Deinitialize (const mcuxClPkc_State_t *pState)
 deinitialize PKC hardware More...
 
void mcuxClPkc_GenerateUPTRT (uint16_t *pUPTRT, const uint8_t *pBaseBuffer, uint16_t bufferLength, uint8_t noOfBuffer)
 Initialize UPTR table. More...
 
mcuxClPkc_Status_t mcuxClPkc_RandomizeUPTRT (mcuxClSession_Handle_t pSession, uint16_t *pUPTRT, uint8_t noOfBuffer)
 Randomize UPTR table. More...
 
mcuxClPkc_Status_t mcuxClPkc_ReRandomizeUPTRT (mcuxClSession_Handle_t pSession, uint16_t *pUPTRT, uint16_t bufferLength, uint8_t noOfBuffer)
 Randomize UPTR table and operands in PKC workarea. More...
 
void mcuxClPkc_Calc (uint16_t param_mode, uint32_t iR_iX_iY_iZ)
 Start a PKC calculation. More...
 
void mcuxClPkc_CalcConst (uint16_t param_mode, uint32_t iR_iX_iY_C)
 Start a PKC calculation with one constant parameter. More...
 
void mcuxClPkc_CalcFup (mcuxClPkc_PtrFUPEntry_t pUPTR, uint8_t uLength)
 Start a PKC FUP program calculation. More...
 
void mcuxClPkc_WaitForFinish (void)
 Wait until PKC finishes calculations. More...
 
void mcuxClPkc_WaitForReady (void)
 Wait until PKC is ready to accept new calculation. More...
 

Detailed Description

APIs of mcuxClPkc component.