VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Main/GraphicUserInterface.cpp
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2014-12-11 18:27:08 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2014-12-11 18:31:41 +0100
commitd32826949213d2dada7759bc7641df370875c8ec (patch)
treecc08259847353d889180c401cedfc39dafb98d81 /src/Main/GraphicUserInterface.cpp
parent134ef041406c78283db0b82760d41248266d481d (diff)
downloadVeraCrypt-d32826949213d2dada7759bc7641df370875c8ec.tar.gz
VeraCrypt-d32826949213d2dada7759bc7641df370875c8ec.zip
Linux/macOSX: always display random gathering dialog/interface before performing sensitive operations that needs good quality random.
Diffstat (limited to 'src/Main/GraphicUserInterface.cpp')
-rw-r--r--src/Main/GraphicUserInterface.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Main/GraphicUserInterface.cpp b/src/Main/GraphicUserInterface.cpp
index b135bc55..440125ef 100644
--- a/src/Main/GraphicUserInterface.cpp
+++ b/src/Main/GraphicUserInterface.cpp
@@ -252,6 +252,8 @@ namespace VeraCrypt
backupFile.Open (*files.front(), File::CreateWrite);
RandomNumberGenerator::Start();
+ /* force the display of the random enriching interface */
+ RandomNumberGenerator::SetEnrichedByUserStatus (false);
UserEnrichRandomPool (nullptr);
{
@@ -1233,6 +1235,9 @@ namespace VeraCrypt
default:
return;
}
+
+ /* force the display of the random enriching interface */
+ RandomNumberGenerator::SetEnrichedByUserStatus (false);
if (restoreInternalBackup)
{
@@ -1282,6 +1287,7 @@ namespace VeraCrypt
UserEnrichRandomPool (nullptr);
// Re-encrypt volume header
+ wxBusyCursor busy;
SecureBuffer newHeaderBuffer (volume->GetLayout()->GetHeaderSize());
Core->ReEncryptVolumeHeaderWithNewSalt (newHeaderBuffer, volume->GetHeader(), options.Password, options.Keyfiles);
@@ -1390,6 +1396,7 @@ namespace VeraCrypt
UserEnrichRandomPool (nullptr);
// Re-encrypt volume header
+ wxBusyCursor busy;
SecureBuffer newHeaderBuffer (decryptedLayout->GetHeaderSize());
Core->ReEncryptVolumeHeaderWithNewSalt (newHeaderBuffer, decryptedLayout->GetHeader(), options.Password, options.Keyfiles);