xilpki
Vitis Drivers API Documentation
xilpki.c File Reference

Overview

 This file contains the implementation of the interface functions for the
 PKI ECDSA hardware module.
 MODIFICATION HISTORY:
 Ver   Who   Date      Changes
 ----- ----  --------  ------------------------------------------------------
 1.0   Nava  12/05/22  Initial Release
 1.1   Nava  06/06/23  Fix the issues relevant to the pki mux selection/deselection
                       logic.
 2.0   Nava  06/21/23  Added PKI multi-queue support for ECC operations.
 2.0   Nava  08/02/23  Added a new API XPki_GetVersion() to access the library
                       version info.
 2.0   Nava  09/06/23  Updated the XPki_GetVersion() API prototype to inline with
                       other secure library version info API's.
 2.0   Nava  09/07/23  Fixed issues with IRQ signal.
 2.0   Nava  09/11/23  Fixed doxygen warnings.
 2.1   Nava  12/07/23  Corrected the PKI_ECC_NIST_P384_KEY_PRIV_GEN_CMD value.
 2.1   Nava  12/27/23  Updated the XPki_DeQueueData() API to return the proper error
                       status for CopyEcdsa* operations.
 2.1   Nava  01/03/24  Fixed security issues relevant to instance pointer NULL check.
 2.2   kpt   01/09/24  Updated option for non-blocking trng reseed
 2.2   Nava  06/12/24  Added support for system device-tree flow.
Note

Functions

void XPki_Reset (void)
 This function reset the PKI module. More...
 
void XPki_SoftReset (void)
 This function performs the PKI module soft reset. More...
 
int XPki_Initialize (XPki_Instance *InstancePtr)
 This function performs the PKI module initialization. More...
 
void XPki_Close (void)
 This function is used to disable access to the PKI Hardware. More...
 
int XPki_TrngGenerateRandomNum (u8 GenSize, u8 *RandBuf)
 This function is used to generate the Random number for the give size. More...
 
int XilPki_EnQueue (XPki_Instance *InstancePtr, XPki_Request_Info *Request_InfoPtr, u32 *RequestID)
 This function is used to submit the crypto operation to the PKI Queue. More...
 
int XilPki_DeQueue (XPki_Instance *InstancePtr, XPki_Request_Info *Request_InfoPtr, u32 RequestID)
 This function is used to get the crypto operation results from the PKI Queue. More...