diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2022-03-20 20:53:20 +0100 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2022-03-21 01:18:27 +0100 |
commit | 538319051857a8fb8e9e8c4f1048ab53e9c26b40 (patch) | |
tree | 1b00ac92b8a1fb5998d08bb6bd4dce9b7b76d77c /src/SetupDLL | |
parent | dd0f3cd16766cf6245b3a1da139ccad952ab7828 (diff) | |
download | VeraCrypt-538319051857a8fb8e9e8c4f1048ab53e9c26b40.tar.gz VeraCrypt-538319051857a8fb8e9e8c4f1048ab53e9c26b40.zip |
Windows: Block upgrade of VeraCrypt is the system is encrypted using RIPEMD-160 or GOST89 since they are not supported anymore.
Diffstat (limited to 'src/SetupDLL')
-rw-r--r-- | src/SetupDLL/Setup.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/SetupDLL/Setup.c b/src/SetupDLL/Setup.c index 7ccd94f9..2afc7312 100644 --- a/src/SetupDLL/Setup.c +++ b/src/SetupDLL/Setup.c @@ -1560,6 +1560,14 @@ BOOL DoDriverUnload_Dll (MSIHANDLE hInstaller, HWND hwnd) goto end; } + // check if we are upgrading a system encrypted with unsupported algorithms + if (bootEnc.IsUsingUnsupportedAlgorithm(driverVersion)) + { + MSILogAndShow(hInstaller, MSI_ERROR_LEVEL, GetString("SYS_ENCRYPTION_UPGRADE_UNSUPPORTED_ALGORITHM")); + bOK = FALSE; + goto end; + } + SystemEncryptionUpdate = TRUE; PortableMode = FALSE; } |