1
Fork 0
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:
Lenny Maiorani 2021-05-16 14:57:53 -06:00 committed by Andreas Kling
parent e6f333ae00
commit adbf555e64

View file

@ -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];