sha512_t - 2023.2 English

Vitis Libraries

Release Date
2023.2 English
#include "xf_security/sha512_t.hpp"
template <
    unsigned int w,
    unsigned int t
void sha512_t (
    hls::stream <ap_uint <w>>& msg_strm,
    hls::stream <ap_uint <128>>& len_strm,
    hls::stream <bool>& end_len_strm,
    hls::stream <ap_uint <t>>& digest_strm,
    hls::stream <bool>& end_digest_strm

SHA-512/t algorithm with stream input and output.

The algorithm reference is : “Secure Hash Standard”, which published by NIST in February 2012. The implementation dataflows the pre-processing part and message digest part.


w The bit width of each input message word, default value is 64.
t The bit width of the digest which depends on specific algorithm, typically is 224 or 256.
msg_strm The message being hashed.
len_strm The message length in byte.
end_len_strm The flag to signal end of input message stream.
digest_strm Output digest stream.
end_digest_strm End flag for output digest stream.