20 #ifndef MCUXCLPKC_FUNCTIONS_H_ 21 #define MCUXCLPKC_FUNCTIONS_H_ 24 #include <mcuxClCore_Platform.h> 94 #define MCUXCLPKC_FP_INITIALIZE(pState) \ 95 MCUX_CSSL_FP_FUNCTION_CALL_VOID(mcuxClPkc_Initialize(pState)) 110 #define MCUXCLPKC_FP_DEINITIALIZE(pState) \ 111 MCUX_CSSL_FP_FUNCTION_CALL_VOID(mcuxClPkc_Deinitialize(pState)) 156 const uint8_t *pBaseBuffer,
157 uint16_t bufferLength,
161 #define MCUXCLPKC_FP_GENERATEUPTRT(pUPTRT, pBaseBuffer, bufferSize, noOfBuffer) \ 162 MCUX_CSSL_FP_FUNCTION_CALL_VOID(mcuxClPkc_GenerateUPTRT(pUPTRT, pBaseBuffer, bufferSize, noOfBuffer)) 238 uint16_t bufferLength,
313 #define MCUXCLPKC_FP_CALCFUP(pUPTR, ulen) \ 314 MCUX_CSSL_FP_FUNCTION_CALL_VOID(mcuxClPkc_CalcFup(pUPTR, ulen)) 317 #define MCUXCLPKC_FP_CALCFUP_OFFSET(pUPTR, skipLen, ulen) \ 318 MCUX_CSSL_FP_FUNCTION_CALL_VOID(mcuxClPkc_CalcFup(&((mcuxClPkc_PtrFUPEntry_t) (pUPTR))[(skipLen)], ulen)) 343 #define MCUXCLPKC_FP_WAITFORFINISH() \ 344 MCUX_CSSL_FP_FUNCTION_CALL_VOID(mcuxClPkc_WaitForFinish()) 354 #define MCUXCLPKC_FP_WAITFORREADY() \ 355 MCUX_CSSL_FP_FUNCTION_CALL_VOID(mcuxClPkc_WaitForReady()) void mcuxClPkc_Deinitialize(const mcuxClPkc_State_t *pState)
deinitialize PKC hardware
Type definitions of mcuxClPkc component.
MCUX_CSSL_FP_FUNCTION_POINTER(mcuxClPkc_PkcInitializeEngine_t, typedef void(*mcuxClPkc_PkcInitializeEngine_t)(mcuxClPkc_State_t *pState))
Function type for PKC initialization engine.
uint32_t mcuxClPkc_Status_t
Type for error codes used by PKC component functions.
Definition: mcuxClPkc_Types.h:55
mcuxClPkc_Status_t mcuxClPkc_RandomizeUPTRT(mcuxClSession_Handle_t pSession, uint16_t *pUPTRT, uint8_t noOfBuffer)
Randomize UPTR table.
uint16_t ctrl
backup of PKC CTRL bits
Definition: mcuxClPkc_Functions.h:56
void mcuxClPkc_Calc(uint16_t param_mode, uint32_t iR_iX_iY_iZ)
Start a PKC calculation.
Provides the API for the CSSL flow protection mechanism.
void mcuxClPkc_Initialize(mcuxClPkc_State_t *pState)
initialize PKC hardware
void mcuxClPkc_CalcConst(uint16_t param_mode, uint32_t iR_iX_iY_C)
Start a PKC calculation with one constant parameter.
Structure of PKC state backup.
Definition: mcuxClPkc_Functions.h:54
const struct mcuxClPkc_FUPEntry * mcuxClPkc_PtrFUPEntry_t
type of FUP program address.
Definition: mcuxClPkc_Functions.h:295
uint16_t cfg
backup of PKC CFG bits
Definition: mcuxClPkc_Functions.h:57
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.
#define MCUX_CSSL_FP_FUNCTION_DECL(...)
Declaration of a flow protected function.
Definition: mcuxCsslFlowProtection.h:125
void mcuxClPkc_WaitForReady(void)
Wait until PKC is ready to accept new calculation.
Top-level include file for the mcuxClSession component.
mcuxClSession_Descriptor_t *const mcuxClSession_Handle_t
Type for mcuxClSession Handle.
Definition: mcuxClSession_Types.h:133
Definition of function identifiers for the flow protection mechanism.
void mcuxClPkc_WaitForFinish(void)
Wait until PKC finishes calculations.
void mcuxClPkc_GenerateUPTRT(uint16_t *pUPTRT, const uint8_t *pBaseBuffer, uint16_t bufferLength, uint8_t noOfBuffer)
Initialize UPTR table.
#define MCUX_CSSL_FP_PROTECTED_TYPE(resultType)
Based on a given base type, builds a return type with flow protection.
Definition: mcuxCsslFlowProtection.h:81
void mcuxClPkc_CalcFup(mcuxClPkc_PtrFUPEntry_t pUPTR, uint8_t uLength)
Start a PKC FUP program calculation.