XilSKey_CrcCalculation - 2021.1 English

Xilinx Standalone Library Documentation OS and Libraries Document Collection (UG643)

Document ID
Release Date
2021.1 English

This function Calculates CRC value based on hexadecimal string passed.

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.


u32 XilSKey_CrcCalculation(const u8 *Key);


The following table lists the XilSKey_CrcCalculation function arguments.

Table 1. XilSKey_CrcCalculation Arguments
Type Name Description
const u8 * Key Pointer to the string contains AES key in hexadecimal of length less than or equal to 64.


  • On Success returns the Crc of AES key value.
  • On failure returns the error code when string length is greater than 64