xilsecure
Vitis Drivers API Documentation
XilSecure SHA Server APIs

Macros

#define XSECURE_IPI_CONTINUE_MASK   (0x80000000U)
 IPI Continue Mask. More...
 

Functions

int XSecure_Sha3IpiHandler (XPlmi_Cmd *Cmd)
 This function calls respective IPI handler based on the API_ID. More...
 
s32 XSecure_Sha1Digest (const u8 *const Data, u32 Len, u8 *const Hash)
 This function calculates SHA1 hash on given input data. More...
 

Macro Definition Documentation

#define XSECURE_IPI_CONTINUE_MASK   (0x80000000U)

IPI Continue Mask.

Function Documentation

s32 XSecure_Sha1Digest ( const u8 *const  Data,
u32  Len,
u8 *const  Hash 
)

This function calculates SHA1 hash on given input data.

Parameters
DataPointer to input data
LenLength of input data
HashPointer to memory location where calculated hash to be stored
Returns
XST_FAILURE In case of failure in SHA1 digest calculation XST_SUCCESS In case of successful calculation of SHA1 digest
int XSecure_Sha3IpiHandler ( XPlmi_Cmd *  Cmd)

This function calls respective IPI handler based on the API_ID.

Parameters
Cmdis pointer to the command structure
Returns
  • XST_SUCCESS - If the handler execution is successful
  • XST_INVALID_PARAM - If cmd is NULL or if invalid API ID is received.
  • XST_DEVICE_BUSY - If IPI channel is busy
  • XST_FAILURE - If there is a failure

SHA IPI event handling

Call the API handler according to API ID

References XSECURE_API, XSECURE_API_ID_MASK, XSECURE_API_SHA3_UPDATE, XSecure_GetSha3Instance(), XSecure_IpiEventHandling(), and XSecure_MakeResFree().