MCUX CLNS
MCUX Crypto Library Normal Secure
 
Loading...
Searching...
No Matches
McuxClOsccaPkc_Functions_UPTRT

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)
 

Detailed Description

mcuxClOsccaPkc functions of PKC UPTR table setup

Function Documentation

◆ mcuxClOsccaPkc_GeneratePointerTable()

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.

Parameters
[out]pOperandsBasepointer to the first element to be initialized in UPTR table.
[in]pBufferBaseaddress of the buffer in PKC workarea, with which the first element will be associated.
[in]bufferSizebyte length of each buffer in PKC workarea.
[in]bufferNumsnumber of elements to be initialized.
Parameter properties
pOperandsBase
this pointer shall be 2-byte aligned.
pBufferBase
this address shall be MCUXCLOSCCAPKC_WORDSIZE aligned.
bufferSize
this length shall be a multiple of MCUXCLOSCCAPKC_WORDSIZE.
bufferNums
this number shall be less then PKC RAM area/bufferSize.