diff options
author | Lenny Maiorani <lenny@colorado.edu> | 2021-05-16 14:57:53 -0600 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-05-17 08:16:46 +0200 |
commit | adbf555e643477e3bf968a5ecb8cc2adc1effd47 (patch) | |
tree | 607521a9d87cfe9641c7ae821fd419aac571f724 /Userland/Libraries/LibCrypto | |
parent | e6f333ae001023224ee887b4c00ef39348b6a436 (diff) | |
download | serenity-adbf555e643477e3bf968a5ecb8cc2adc1effd47.zip |
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.
Diffstat (limited to 'Userland/Libraries/LibCrypto')
-rw-r--r-- | Userland/Libraries/LibCrypto/PK/Code/EMSA_PSS.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibCrypto/PK/Code/EMSA_PSS.h b/Userland/Libraries/LibCrypto/PK/Code/EMSA_PSS.h index 127f3c528e..9222562e12 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]; |