mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-04 05:20:30 +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
Notes:
sideshowbarker
2024-07-18 17:58:20 +09:00
Author: https://github.com/ldm5180 Commit: https://github.com/SerenityOS/serenity/commit/adbf555e643 Pull-request: https://github.com/SerenityOS/serenity/pull/7195
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…
Reference in a new issue