lib/gcrypt/Hash: use the "algo" parameter instead of hard-coding MD5

This commit is contained in:
Max Kellermann 2019-08-13 20:02:08 +02:00
parent 6b51429203
commit 21b81dfb1d

View File

@ -45,7 +45,7 @@ auto
Hash(ConstBuffer<void> input) noexcept
{
std::array<uint8_t, size> result;
gcry_md_hash_buffer(GCRY_MD_MD5, &result.front(),
gcry_md_hash_buffer(algo, &result.front(),
input.data, input.size);
return result;
}