From a588b20975b18b56b513e12a1fa312d6a97e9396 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sat, 16 Nov 2024 17:38:25 +0100 Subject: Windows: Fix driver crash caused by 32-bit leftover code in derive_key_blake2s function --- src/Common/Pkcs5.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src') diff --git a/src/Common/Pkcs5.c b/src/Common/Pkcs5.c index ef4d0c68..6cffddf2 100644 --- a/src/Common/Pkcs5.c +++ b/src/Common/Pkcs5.c @@ -683,9 +683,6 @@ void derive_key_blake2s (const unsigned char *pwd, int pwd_len, const unsigned c XSTATE_SAVE SaveState; if (IsCpuIntel() && HasSAVX()) saveStatus = KeSaveExtendedProcessorStateVC(XSTATE_MASK_GSSE, &SaveState); - KFLOATING_SAVE floatingPointState; - if (HasSSE2()) - saveStatus = KeSaveFloatingPointState (&floatingPointState); #endif /* If the password is longer than the hash algorithm block size, let pwd = blake2s(pwd), as per HMAC specifications. */ -- cgit v1.2.3