mirror of
https://github.com/veracrypt/VeraCrypt
synced 2024-11-28 05:53:29 +01:00
Linux: Disable Kernel crypto if volume encrypted using Kuznyechik or Magma
This commit is contained in:
parent
7695b8ada0
commit
d8a7de8ffb
@ -303,9 +303,12 @@ namespace VeraCrypt
|
||||
void CoreLinux::MountVolumeNative (shared_ptr <Volume> volume, MountOptions &options, const DirectoryPath &auxMountPoint) const
|
||||
{
|
||||
bool xts = (typeid (*volume->GetEncryptionMode()) == typeid (EncryptionModeXTS));
|
||||
bool algoNotSupported = (typeid (*volume->GetEncryptionAlgorithm()) == typeid (GOST89))
|
||||
|| (typeid (*volume->GetEncryptionAlgorithm()) == typeid (Kuznyechik));
|
||||
|
||||
if (options.NoKernelCrypto
|
||||
|| !xts
|
||||
|| algoNotSupported
|
||||
|| volume->GetProtectionType() == VolumeProtection::HiddenVolumeReadOnly)
|
||||
{
|
||||
throw NotApplicable (SRC_POS);
|
||||
|
Loading…
Reference in New Issue
Block a user