#include "xf_security/md5.hpp"
static void md5 ( hls::stream <ap_uint <32>>& msg_strm, hls::stream <ap_uint <64>>& len_strm, hls::stream <bool>& end_len_strm, hls::stream <ap_uint <128>>& digest_strm, hls::stream <bool>& end_digest_strm )
Top function of MD5.
The algorithm reference is : “The MD5 Message-Digest Algorithm”.
Parameters:
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 | The digest (fingerprint) stream. |
end_digest_strm | Flag to signal the end of the result. |