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.
Prototype
u32 XilSKey_CrcCalculation(const u8 *Key);
Parameters
The following table lists the XilSKey_CrcCalculation
function arguments.
Type | Name | Description |
---|---|---|
const u8 * | Key | Pointer 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