diff --git a/src/lib/gcrypt/Hash.hxx b/src/lib/gcrypt/Hash.hxx index 0503112d0..f602910a8 100644 --- a/src/lib/gcrypt/Hash.hxx +++ b/src/lib/gcrypt/Hash.hxx @@ -45,7 +45,7 @@ auto Hash(ConstBuffer input) noexcept { std::array result; - gcry_md_hash_buffer(GCRY_MD_MD5, &result.front(), + gcry_md_hash_buffer(algo, &result.front(), input.data, input.size); return result; }