VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Setup
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2022-03-20 20:53:20 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2022-03-21 01:18:27 +0100
commit538319051857a8fb8e9e8c4f1048ab53e9c26b40 (patch)
tree1b00ac92b8a1fb5998d08bb6bd4dce9b7b76d77c /src/Setup
parentdd0f3cd16766cf6245b3a1da139ccad952ab7828 (diff)
downloadVeraCrypt-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/Setup')
-rw-r--r--src/Setup/Setup.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Setup/Setup.c b/src/Setup/Setup.c
index fbc8a7d8..9433bd40 100644
--- a/src/Setup/Setup.c
+++ b/src/Setup/Setup.c
@@ -1726,6 +1726,10 @@ BOOL DoDriverUnload (HWND hwndDlg)
if (CurrentOSMajor == 6 && CurrentOSMinor == 0 && CurrentOSServicePack < 1)
AbortProcess ("SYS_ENCRYPTION_UPGRADE_UNSUPPORTED_ON_VISTA_SP0");
+ // check if we are upgrading a system encrypted with unsupported algorithms
+ if (bootEnc.IsUsingUnsupportedAlgorithm(driverVersion))
+ AbortProcess ("SYS_ENCRYPTION_UPGRADE_UNSUPPORTED_ALGORITHM");
+
SystemEncryptionUpdate = TRUE;
PortableMode = FALSE;
}