mcuxClPkc functions of PKC UPTR table setup More...
Macros | |
| #define | MCUXCLPKC_FP_GENERATEUPTRT(pUPTRT, pBaseBuffer, bufferSize, noOfBuffer) |
| Helper macro to call mcuxClPkc_GenerateUPTRT with flow protection. | |
Functions | |
| 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. | |
mcuxClPkc functions of PKC UPTR table setup
| #define MCUXCLPKC_FP_GENERATEUPTRT | ( | pUPTRT, | |
| pBaseBuffer, | |||
| bufferSize, | |||
| noOfBuffer ) |
Helper macro to call mcuxClPkc_GenerateUPTRT with flow protection.
| void mcuxClPkc_GenerateUPTRT | ( | uint16_t * | pUPTRT, |
| const uint8_t * | pBaseBuffer, | ||
| uint16_t | bufferLength, | ||
| uint8_t | noOfBuffer ) |
Initialize UPTR table.
This function initializes elements in UPTR table. UPTR table contains the address (16-bit offset in PKC workarea) of each buffer (PKC operand). Each element of the table will be initialized with a 16-bit offset, associated with a buffer allocated in sequence in PKC workarea. When calling this function, there shall be no on-going and pending PKC calculations using the specified UPTR table elements.
| [out] | pUPTRT | pointer to the first element to be initialized in UPTR table. |
| [in] | pBaseBuffer | address of the buffer in PKC workarea, with which the first element will be associated. |
| [in] | bufferLength | byte length of each buffer in PKC workarea. |
| [in] | noOfBuffer | number of elements to be initialized. |
pUPTRT pBaseBuffer bufferLength | mcuxClPkc_Status_t mcuxClPkc_RandomizeUPTRT | ( | mcuxClSession_Handle_t | pSession, |
| uint16_t * | pUPTRT, | ||
| uint8_t | noOfBuffer ) |
Randomize UPTR table.
This function randomly permutes offsets stored in UPTR table. It randomizes the buffer allocation (physical address in PKC workarea). When calling this function, there shall be no on-going and pending PKC calculations using the specified UPTR table elements.
| [in] | pSession | handle for the current CL session. |
| [in,out] | pUPTRT | pointer to the first element to be randomized in UPTR table. |
| [in] | noOfBuffer | number of elements to be randomized. |
pUPTRT | MCUXCLPKC_STATUS_OK | if UPTR table is randomized successfully. |
| MCUXCLPKC_STATUS_NOK | if the operation failed. |
| 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.
This function randomly permutes offsets stored in UPTR table, together with operands stored in each buffer in PKC workarea. It randomizes the buffer allocation (physical address in PKC workarea) and moves operands stored accordingly. When calling this function, there shall be no on-going and pending PKC calculations using the specified UPTR table elements.
| [in] | pSession | handle for the current CL session. |
| [in,out] | pUPTRT | pointer to the first element to be randomized in UPTR table. |
| [in] | bufferLength | byte length of each buffer in PKC workarea. |
| [in] | noOfBuffer | number of elements to be randomized. |
pUPTRT bufferLength | MCUXCLPKC_STATUS_OK | if UPTR table is randomized successfully. |
| MCUXCLPKC_STATUS_NOK | if the operation failed. |