MCUX CLNS
MCUX Crypto Library Normal Secure
 
Loading...
Searching...
No Matches
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.
 
#define MCUXCLPKC_FP_DEINITIALIZE(pState)
 Helper macro to call mcuxClPkc_Deinitialize with flow protection.
 
#define MCUXCLPKC_FP_GENERATEUPTRT(pUPTRT, pBaseBuffer, bufferSize, noOfBuffer)
 Helper macro to call mcuxClPkc_GenerateUPTRT with flow protection.
 
#define MCUXCLPKC_FP_CALCFUP(pUPTR, ulen)
 Helper macro to call mcuxClPkc_CalcFup with flow protection.
 
#define MCUXCLPKC_FP_CALCFUP_OFFSET(pUPTR, skipLen, ulen)
 Helper macro to call mcuxClPkc_CalcFup (skipping first skipLen calculation(s)) with flow protection.
 
#define MCUXCLPKC_FP_WAITFORFINISH()
 Helper macro to call mcuxClPkc_WaitForFinish with flow protection.
 
#define MCUXCLPKC_FP_WAITFORREADY()
 Helper macro to call mcuxClPkc_WaitForReady with flow protection.
 

Typedefs

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

Functions

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

Detailed Description

APIs of mcuxClPkc component.