Commit 21b81dfb authored by Max Kellermann's avatar Max Kellermann

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

parent 6b514292
...@@ -45,7 +45,7 @@ auto ...@@ -45,7 +45,7 @@ auto
Hash(ConstBuffer<void> input) noexcept Hash(ConstBuffer<void> input) noexcept
{ {
std::array<uint8_t, size> result; 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); input.data, input.size);
return result; return result;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment