Update to KeePassLib version 2.45

This commit is contained in:
Geoffroy BONNEVILLE
2020-05-12 12:46:25 +02:00
parent 107e009807
commit 2e1cc97738
21 changed files with 166 additions and 65 deletions

View File

@@ -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)
{

View File

@@ -108,7 +108,7 @@ namespace ModernKeePassLib.Cryptography
}
#if !ModernKeePassLib
internal static byte[] HashSha256(string strFilePath)
internal static byte[] HashSha256(string strFilePath)
{
byte[] pbHash = null;

View File

@@ -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];

View File

@@ -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))
{