xilsecure
Vitis Drivers API Documentation
XilSecure Versal_2Ve_2Vm APIs

Macros

#define XSECURE_SHA_START   (0x1U)
 Operation flags for SHA start. More...
 
#define XSECURE_SHA_UPDATE   (0x2U)
 Operation flags for SHA update. More...
 
#define XSECURE_SHA_FINISH   (0x4U)
 Operation flags for SHA finish. More...
 

Functions

int XSecure_ShaIpiHandler (XPlmi_Cmd *Cmd)
 This function calls respective IPI handler based on the API_ID. More...
 
int main (void)
 Main function to call the SecureAesExample. More...
 

Macro Definition Documentation

#define XSECURE_SHA_FINISH   (0x4U)

Operation flags for SHA finish.

#define XSECURE_SHA_START   (0x1U)

Operation flags for SHA start.

#define XSECURE_SHA_UPDATE   (0x2U)

Operation flags for SHA update.

Referenced by XSecure_Sha3Finish(), and XSecure_Sha3Update().

Function Documentation

int main ( void  )

Main function to call the SecureAesExample.

Main function to call the SecureShaExample.

This example illustrates the usage of RSA APIs to encrypt or decrypt the signature.

Main function to call the SecureRsaExample.

Parameters
None
Returns
  • XST_FAILURE if the Test Failed .
Note
None
Parameters
None
Returns
  • XST_FAILURE if the boot image authentication Failed .
Note
None
Returns
  • XST_FAILURE if the SHA calculation failed.

References SecureAesExample().

int XSecure_ShaIpiHandler ( 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
  • ErrorCode - If there is a failure

SHA IPI event handling

References XSECURE_API, XSECURE_API_ID_MASK, XSECURE_API_SHA2_OPERATION, XSECURE_API_SHA3_OPERATION, XSecure_GetSha2Instance(), XSecure_GetSha3Instance(), XSecure_IpiEventHandling(), XSecure_MakeResFree(), and XSecure_Printf.