mcuxClOsccaPkc functions of PKC UPTR table setup More...
Functions | |
void | mcuxClOsccaPkc_GeneratePointerTable (uint16_t *pOperandsBase, uint8_t *pBufferBase, uint32_t bufferSize, uint32_t bufferNums) |
Initialize UPTR table. | |
void | mcuxClOsccaPkc_MultipleShiftRotate_Index (uint32_t iModuluss, uint32_t iModulus, uint32_t leadingZeroBits, _Bool shiftLeft) |
uint32_t | mcuxClOsccaPkc_LeadingZeros (uint8_t *pNum, uint32_t numLen) |
void | mcuxClOsccaPkc_ComputeModInv (uint32_t iRiIiNiT, uint32_t iT2) |
void | mcuxClOsccaPkc_CalcMontInverse (uint32_t iIiRiNiT, uint32_t R2) |
mcuxClOsccaPkc functions of PKC UPTR table setup
void mcuxClOsccaPkc_GeneratePointerTable | ( | uint16_t * | pOperandsBase, |
uint8_t * | pBufferBase, | ||
uint32_t | bufferSize, | ||
uint32_t | bufferNums | ||
) |
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] | pOperandsBase | pointer to the first element to be initialized in UPTR table. |
[in] | pBufferBase | address of the buffer in PKC workarea, with which the first element will be associated. |
[in] | bufferSize | byte length of each buffer in PKC workarea. |
[in] | bufferNums | number of elements to be initialized. |
pOperandsBase
pBufferBase
bufferSize
bufferNums