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
Notes: sideshowbarker 2024-07-18 17:58:20 +09:00

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