XilSKey_CrcCalculation - 2021.1 English

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

Document ID
UG643
Release Date
2021-06-16
Version
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.

Prototype

u32 XilSKey_CrcCalculation(const u8 *Key);

Parameters

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.

Returns

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