#include "xf_security/sha512_t.hpp"
template <unsigned int w> void sha384 ( hls::stream <ap_uint <w>>& msg_strm, hls::stream <ap_uint <128>>& len_strm, hls::stream <bool>& end_len_strm, hls::stream <ap_uint <384>>& digest_strm, hls::stream <bool>& end_digest_strm )
SHA-384 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.
Parameters:
w | The bit width of each input message word, default value is 64. |
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. |