diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2024-12-27 00:56:50 +0100 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2024-12-27 00:56:50 +0100 |
commit | 4e85009f579972ce422349d2c99ae0920b8e45c2 (patch) | |
tree | fe278035fbf542b3e4fa104a6fb2eff1fbc1e56e /src/Platform/Memory.cpp | |
parent | f3af65b0079db68ff5059b66e4fd4e1c76d33b0b (diff) | |
download | VeraCrypt-master.tar.gz VeraCrypt-master.zip |
Windows: use modern API to gather system entropy for random generation instead of obsolete that were not workingHEADmaster
This commit increases randomness quality by using more dynamic/varied sources of entropy.
PDH-based disk and network statistics collection in now added to random pool
- Introduced `GetDiskStatistics` to gather disk read/write performance data using PDH API.
- Introduced `GetNetworkStatistics` to gather network send/receive performance data using PDH API.
- Integrated high-resolution timestamps and random intervals to improve entropy in collected data.
- Updated `SlowPoll` function to utilize PDH-based disk and network statistics.
- Removed obsolete NetAPI32-based network statistics collection.
Diffstat (limited to 'src/Platform/Memory.cpp')
0 files changed, 0 insertions, 0 deletions