lib/gcrypt/Hash: use the "algo" parameter instead of hard-coding MD5
This commit is contained in:
parent
6b51429203
commit
21b81dfb1d
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user