xilsecure
Vitis Drivers API Documentation
XilSecure TRNG Client APIs

Functions

int XSecure_TrngGenerateRandNum (XSecure_ClientInstance *InstancePtr, u64 RandBufAddr, u32 Size)
 This function sends IPI request to generate random number. More...
 

Function Documentation

int XSecure_TrngGenerateRandNum ( XSecure_ClientInstance *  InstancePtr,
u64  RandBufAddr,
u32  Size 
)

This function sends IPI request to generate random number.

Parameters
InstancePtrPointer to the client instance.
RandBufAddrRand Buffer address to store the generated random number.
SizeNumber of random bytes needs to be generated.
Returns
  • XST_SUCCESS When KAT Pass
  • XST_INVALID_PARAM If any input parameters are invalid.
  • XST_FAILURE If there is a failure

Send an IPI request to the PLM by using the CDO command to call XSecure_TrngGenerateRandNum API and returns the status of the IPI response.

References XSECURE_API_TRNG_GENERATE, and XSecure_ProcessMailbox().

Referenced by XSecure_TrngIpiHandler().