xilskey
Vitis Drivers API Documentation
xilskey common file

Functions

u32 XilSKey_CrcCalculation (const u8 *Key)
 This function Calculates CRC value based on hexadecimal string passed. More...
 
u32 XilSkey_CrcCalculation_AesKey (const u8 *Key)
 Calculates CRC value of the provided key. More...
 

Function Documentation

u32 XilSKey_CrcCalculation ( const u8 *  Key)

This function Calculates CRC value based on hexadecimal string passed.

Parameters
KeyPointer to the string contains AES key in hexadecimal of length less than or equal to 64.
Returns
  • On Success returns the Crc of AES key value.
  • On failure returns the error code when string length is greater than 64
Note
If the length of the string provided is less than 64, this function appends the string with zeros. For calculation of AES key's CRC one can use u32 XilSKey_CrcCalculation(u8 *Key) API or reverse polynomial 0x82F63B78.

References XilSKey_Efuse_ConvertStringToHexBE(), XilSKey_RowCrcCalculation(), and XSK_EFUSEPL_ERROR_NOT_VALID_KEY_LENGTH.

u32 XilSkey_CrcCalculation_AesKey ( const u8 *  Key)

Calculates CRC value of the provided key.

Key should be provided in hexa buffer.

Parameters
KeyPointer to an array of 32 bytes, which holds an AES key.
Returns
Crc of provided AES key value. To calculate CRC on the AES key in string format please use XilSKey_CrcCalculation.

References XilSKey_RowCrcCalculation().

Referenced by XilSKey_ZynqMp_EfusePs_Write().