From e5a0bf22b17d7d6c92d7793bed5d63d0e9e72e4c Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sat, 24 Aug 2024 17:53:44 +0200 Subject: Windows: Exclude Argon2 for System Encryption and from automatic detection Bootloader doesn't support Argon2 yet. We don't want to add overhead to automatic detection for now. --- src/Common/Crypto.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/Common/Crypto.c') diff --git a/src/Common/Crypto.c b/src/Common/Crypto.c index 4ed60c03..aea52d42 100644 --- a/src/Common/Crypto.c +++ b/src/Common/Crypto.c @@ -822,6 +822,11 @@ BOOL HashForSystemEncryption (int hashId) } +BOOL HashIsAvailable (int hashId) +{ + return (hashId != ARGON2) && (HashGet(hashId) != 0); // Argon2 is not a hash function +} + // Returns the largest key size needed by an EA for the specified mode of operation int EAGetLargestKeyForMode (int mode) { -- cgit v1.2.3