Windows driver: call VcProtectKeys only when RAM encryption enabled although this function does nothing when RAM encryption is disabled.
This commit is contained in:
parent
0391b8e550
commit
ae5eb73f93
|
@ -645,8 +645,11 @@ static NTSTATUS MountDrive (DriveFilterExtension *Extension, Password *password,
|
||||||
|
|
||||||
/* encrypt keys */
|
/* encrypt keys */
|
||||||
#ifdef _WIN64
|
#ifdef _WIN64
|
||||||
VcProtectKeys (Extension->HeaderCryptoInfo, VcGetEncryptionID (Extension->HeaderCryptoInfo));
|
if (IsRamEncryptionEnabled())
|
||||||
VcProtectKeys (Extension->Queue.CryptoInfo, VcGetEncryptionID (Extension->Queue.CryptoInfo));
|
{
|
||||||
|
VcProtectKeys (Extension->HeaderCryptoInfo, VcGetEncryptionID (Extension->HeaderCryptoInfo));
|
||||||
|
VcProtectKeys (Extension->Queue.CryptoInfo, VcGetEncryptionID (Extension->Queue.CryptoInfo));
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
status = EncryptedIoQueueStart (&Extension->Queue);
|
status = EncryptedIoQueueStart (&Extension->Queue);
|
||||||
|
|
Loading…
Reference in New Issue