mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 03:57:44 +00:00
LibCrypto: Fix incorrectly constexpr variable
Problem: - Clang ToT reports an error because `digest_size` cannot be evaluated at compile-time. Solution: - Change from using the member function to the `static` shadow of the NTTP.
This commit is contained in:
parent
e6f333ae00
commit
adbf555e64
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ public:
|
|||
auto& hash_fn = this->hasher();
|
||||
hash_fn.update(in);
|
||||
auto message_hash = hash_fn.digest();
|
||||
constexpr auto hash_length = hash_fn.DigestSize;
|
||||
constexpr auto hash_length = HashFunction::DigestSize;
|
||||
auto em_length = (em_bits + 7) / 8;
|
||||
u8 salt[SaltLength];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue