adler32 overload (1) - 2023.1 English

Vitis Libraries

Release Date
2023-12-20
Version
2023.1 English
#include "xf_security/adler32.hpp"
template <int W>
void adler32 (
    hls::stream <ap_uint <32>>& adlerStrm,
    hls::stream <ap_uint <W*8>>& inStrm,
    hls::stream <ap_uint <32>>& inLenStrm,
    hls::stream <bool>& endInLenStrm,
    hls::stream <ap_uint <32>>& outStrm,
    hls::stream <bool>& endOutStrm
    )

adler32 computes the Adler-32 checksum of an input data.

Parameters:

W byte number of input data, the value of W includes 1, 2, 4, 8, 16.
adlerStrm initialize adler32 value
inStrm messages to be checked
inLenStrm length of messages to be checked.
endInLenStrm end flag of inLenStrm
outStrm checksum result
end flag of outStrm