20 #ifndef MCUXCLPKC_FUNCTIONS_H_ 21 #define MCUXCLPKC_FUNCTIONS_H_ 72 #define MCUXCLPKC_FP_INITIALIZE(pState) \ 74 MCUX_CSSL_FP_FUNCTION_CALL(retValTemp, mcuxClPkc_Initialize(pState)); \ 93 #define MCUXCLPKC_FP_DEINITIALIZE(pState) \ 95 MCUX_CSSL_FP_FUNCTION_CALL(retValTemp, mcuxClPkc_Deinitialize(pState)); \ 131 const uint8_t *pBaseBuffer,
136 #define MCUXCLPKC_FP_GENERATEUPTRT(pUPTRT, pBaseBuffer, bufferSize, noOfBuffer) \ 138 MCUX_CSSL_FP_FUNCTION_CALL(retValTemp, mcuxClPkc_GenerateUPTRT(pUPTRT, pBaseBuffer, bufferSize, noOfBuffer)); \ 264 #define MCUXCLPKC_FP_CALCFUP(pUPTR, ulen) \ 266 MCUX_CSSL_FP_FUNCTION_CALL(retValTemp, mcuxClPkc_CalcFup(pUPTR, ulen)); \ 270 #define MCUXCLPKC_FP_CALCFUP_OFFSET(pUPTR, skipLen, ulen) \ 272 MCUX_CSSL_FP_FUNCTION_CALL(retValTemp, mcuxClPkc_CalcFup(&((mcuxClPkc_PtrFUPEntry_t) (pUPTR))[(skipLen)], ulen)); \ 302 #define MCUXCLPKC_FP_WAITFORFINISH() \ 304 MCUX_CSSL_FP_FUNCTION_CALL(retValTemp, mcuxClPkc_WaitForFinish()); \ 319 #define MCUXCLPKC_FP_WAITFORREADY() \ 321 MCUX_CSSL_FP_FUNCTION_CALL(retValTemp, mcuxClPkc_WaitForReady()); \ uint16_t cfg
backup of PKC CFG bits
Definition: mcuxClPkc_Functions.h:54
mcuxClPkc_Status_Protected_t mcuxClPkc_WaitForReady(void)
Wait until PKC is ready to accept new calculation.
Type definitions of mcuxClPkc component.
mcuxClPkc_Status_Protected_t mcuxClPkc_GenerateUPTRT(uint16_t *pUPTRT, const uint8_t *pBaseBuffer, uint16_t bufferSize, uint8_t noOfBuffer)
Initialize UPTR table.
mcuxClPkc_Status_Protected_t mcuxClPkc_Deinitialize(const mcuxClPkc_State_t *pState)
deinitialize PKC hardware
uint64_t mcuxClPkc_Status_Protected_t
Type for error codes used by code-flow protected PKC component functions.
Definition: mcuxClPkc_Types.h:58
mcuxClPkc_Status_Protected_t mcuxClPkc_RandomizeUPTRT(uint16_t *pUPTRT, uint8_t noOfBuffer)
Randomize UPTR table.
uint16_t ctrl
backup of PKC CTRL bits
Definition: mcuxClPkc_Functions.h:53
mcuxClPkc_Status_Protected_t mcuxClPkc_ReRandomizeUPTRT(uint16_t *pUPTRT, uint16_t bufferSize, uint8_t noOfBuffer)
Randomize UPTR table and operands in PKC workarea.
Structure of PKC state backup.
Definition: mcuxClPkc_Functions.h:51
mcuxClPkc_Status_Protected_t mcuxClPkc_Calc(uint16_t param_mode, uint32_t iR_iX_iY_iZ)
Start a PKC calculation.
const struct mcuxClPkc_FUPEntry * mcuxClPkc_PtrFUPEntry_t
type of FUP program address.
Definition: mcuxClPkc_Functions.h:243
mcuxClPkc_Status_Protected_t mcuxClPkc_CalcFup(mcuxClPkc_PtrFUPEntry_t pUPTR, uint8_t ulen)
Start a PKC FUP program calculation.
mcuxClPkc_Status_Protected_t mcuxClPkc_CalcConst(uint16_t param_mode, uint32_t iR_iX_iY_C)
Start a PKC calculation with one constant parameter.
Provides the API for the CSSL flow protection mechanism.
mcuxClPkc_Status_Protected_t mcuxClPkc_Initialize(mcuxClPkc_State_t *pState)
initialize PKC hardware
#define MCUX_CSSL_FP_FUNCTION_DECL(id)
Declaration of a flow protected function.
Definition: mcuxCsslFlowProtection.h:119
mcuxClPkc_Status_Protected_t mcuxClPkc_WaitForFinish(void)
Wait until PKC finishes calculations.