diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2014-12-11 18:27:08 +0100 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2014-12-11 18:31:41 +0100 |
commit | d32826949213d2dada7759bc7641df370875c8ec (patch) | |
tree | cc08259847353d889180c401cedfc39dafb98d81 /src/Main/GraphicUserInterface.cpp | |
parent | 134ef041406c78283db0b82760d41248266d481d (diff) | |
download | VeraCrypt-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.cpp | 7 |
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); |