crc32c overload (1) - 2023.2 English

Vitis Libraries

Release Date
2023.2 English
#include "xf_security/crc32c.hpp"
template <int W>
void crc32c (
    hls::stream <ap_uint <32>>& crcInitStrm,
    hls::stream <ap_uint <8*W>>& inStrm,
    hls::stream <ap_uint <32>>& inLenStrm,
    hls::stream <bool>& endInStrm,
    hls::stream <ap_uint <32>>& outStrm,
    hls::stream <bool>& endOutStrm

crc32c computes the CRC32 (Castagnoli) check value of an input data.


W byte number of input data, the value of W includes 1, 2, 4, 8, 16, 32, 64.
crcInitStrm initialize crc32 value
inStrm input messages to be checked
inLenStrm lengths of input message
endInStrm end flag of inLenStrm
outStrm crc32 result to output
endOutStrm end flag of outStrm