xilskey
Vitis Drivers API Documentation
zynqmp bbram

Functions

u32 XilSKey_ZynqMp_Bbram_Program (const u32 *AesKey)
 This function implements the BBRAM programming and verifying the key written. More...
 
u32 XilSKey_ZynqMp_Bbram_Zeroise (void)
 This function zeroize's Bbram Key. More...
 

Function Documentation

u32 XilSKey_ZynqMp_Bbram_Program ( const u32 *  AesKey)

This function implements the BBRAM programming and verifying the key written.

Program and verification of AES will work only together. CRC of the provided key will be calculated internally and verified after programming.

Parameters
AesKeyPointer to the key which has to be programmed.
Returns
  • Error code from XskZynqMp_Ps_Bbram_ErrorCodes enum if it fails
  • XST_SUCCESS if programming is done.

References XSK_ZYNQMP_BBRAM_0_OFFSET, XSK_ZYNQMP_BBRAM_7_OFFSET, XSK_ZYNQMP_BBRAM_AES_CRC_OFFSET, XSK_ZYNQMP_BBRAM_BASEADDR, XSK_ZYNQMP_BBRAM_STS_AES_CRC_DONE_MASK, XSK_ZYNQMP_BBRAM_STS_AES_CRC_PASS_MASK, XSK_ZYNQMP_BBRAM_STS_OFFSET, XSK_ZYNQMP_BBRAMPS_ERROR_IN_CRC_CHECK, XSK_ZYNQMP_BBRAMPS_ERROR_IN_PRGRMG, and XSK_ZYNQMP_BBRAMPS_ERROR_IN_WRITE_CRC.

u32 XilSKey_ZynqMp_Bbram_Zeroise ( void  )