1.01 pre1:

added preferences to switch encryption+kdf and to edit kdf parameters (for AES and Argon2)
This commit is contained in:
Philipp Crocoll
2016-09-08 04:41:41 +02:00
parent e4c17e2e27
commit 9b9f069949
12 changed files with 390 additions and 69 deletions

View File

@@ -46,7 +46,6 @@ namespace KeePassLib.Cryptography.Cipher
cp = new CipherPool();
cp.AddCipher(new StandardAesEngine());
cp.AddCipher(new ChaCha20Engine());
m_poolGlobal = cp;
}
@@ -161,5 +160,12 @@ namespace KeePassLib.Cryptography.Cipher
return m_vCiphers[nIndex];
}
}
public IEnumerable<ICipherEngine> Engines
{
get {
return m_vCiphers;
}
}
}
}

View File

@@ -122,6 +122,7 @@ namespace KeePassLib.Cryptography.KeyDerivation
// Try to use the native library first
if (NativeLib.TransformKey256(pbNewKey, pbKeySeed32, uNumRounds))
{
//no need to hash, this is already done in the native library.
byte[] pbKey = new byte[32];
Array.Copy(pbNewKey, pbKey, pbNewKey.Length);