ddnet/src/base/hash_bundled.cpp

20 lines
334 B
C++
Raw Normal View History

#if !defined(CONF_OPENSSL)
#include "hash_ctxt.h"
#include <engine/external/md5/md5.h>
void md5_update(MD5_CTX *ctxt, const void *data, size_t data_len)
{
2021-06-15 01:24:23 +00:00
md5_append(ctxt, (const md5_byte_t *)data, data_len);
}
MD5_DIGEST md5_finish(MD5_CTX *ctxt)
{
MD5_DIGEST result;
md5_finish_(ctxt, result.data);
return result;
}
#endif