mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2026-06-17 18:16:07 -05:00
Windows: Block upgrade of VeraCrypt is the system is encrypted using RIPEMD-160 or GOST89 since they are not supported anymore.
This commit is contained in:
@@ -5832,4 +5832,32 @@ namespace VeraCrypt
|
||||
{
|
||||
return (::RestartComputer(bShutdown) != FALSE);
|
||||
}
|
||||
|
||||
bool BootEncryption::IsUsingUnsupportedAlgorithm(LONG driverVersion)
|
||||
{
|
||||
bool bRet = false;
|
||||
|
||||
try
|
||||
{
|
||||
if (driverVersion <= 0x125)
|
||||
{
|
||||
// version 1.25 is last version to support RIPEMD160 and GOST89
|
||||
static int GOST89_EA = 5;
|
||||
static int RIPEMD160_PRF = 4;
|
||||
|
||||
VOLUME_PROPERTIES_STRUCT props = {0};
|
||||
GetVolumeProperties(&props);
|
||||
|
||||
//
|
||||
if (props.ea == GOST89_EA || props.pkcs5 == RIPEMD160_PRF)
|
||||
bRet = true;
|
||||
}
|
||||
}
|
||||
catch(...)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
return bRet;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user