mirror of
https://github.com/wismna/ModernKeePassLib.git
synced 2025-10-03 15:40:20 -04:00
Update to KeePassLib version 2.45
This commit is contained in:
@@ -234,7 +234,7 @@ namespace ModernKeePassLib.Cryptography
|
||||
try
|
||||
{
|
||||
#if KeePassUAP
|
||||
f(DiagnosticsExt.GetProcessEntropy(), true);
|
||||
f(DiagnosticsExt.GetProcessEntropy(), true);
|
||||
#elif !KeePassLibSD && !ModernKeePassLib
|
||||
using(Process p = Process.GetCurrentProcess())
|
||||
{
|
||||
@@ -282,7 +282,6 @@ namespace ModernKeePassLib.Cryptography
|
||||
{
|
||||
byte[] pb = new byte[32];
|
||||
|
||||
|
||||
try { m_rng.GetBytes(pb); }
|
||||
catch(Exception)
|
||||
{
|
||||
|
@@ -108,7 +108,7 @@ namespace ModernKeePassLib.Cryptography
|
||||
}
|
||||
|
||||
#if !ModernKeePassLib
|
||||
internal static byte[] HashSha256(string strFilePath)
|
||||
internal static byte[] HashSha256(string strFilePath)
|
||||
{
|
||||
byte[] pbHash = null;
|
||||
|
||||
|
@@ -151,6 +151,8 @@ namespace ModernKeePassLib.Cryptography.KeyDerivation
|
||||
aes.ProcessBlock(pbNewKey32, 0, pbNewKey32, 0);
|
||||
aes.ProcessBlock(pbNewKey32, 16, pbNewKey32, 16);
|
||||
}
|
||||
|
||||
aes.Reset();
|
||||
#else
|
||||
byte[] pbIV = new byte[16];
|
||||
|
||||
|
@@ -468,7 +468,6 @@ namespace ModernKeePassLib.Cryptography.KeyDerivation
|
||||
|
||||
#if ModernKeePassLib
|
||||
Task.Factory.StartNew(FillSegmentThr, ti);
|
||||
//ThreadPool.RunAsync(a => FillSegmentThr(ti));
|
||||
#else
|
||||
if(!ThreadPool.QueueUserWorkItem(FillSegmentThr, ti))
|
||||
{
|
||||
|
Reference in New Issue
Block a user