From adbf555e643477e3bf968a5ecb8cc2adc1effd47 Mon Sep 17 00:00:00 2001 From: Lenny Maiorani Date: Sun, 16 May 2021 14:57:53 -0600 Subject: [PATCH] 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. --- Userland/Libraries/LibCrypto/PK/Code/EMSA_PSS.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibCrypto/PK/Code/EMSA_PSS.h b/Userland/Libraries/LibCrypto/PK/Code/EMSA_PSS.h index 127f3c528e3..9222562e126 100644 --- a/Userland/Libraries/LibCrypto/PK/Code/EMSA_PSS.h +++ b/Userland/Libraries/LibCrypto/PK/Code/EMSA_PSS.h @@ -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];