mirror of
https://github.com/moparisthebest/keepass2android
synced 2024-11-21 16:55:01 -05:00
fix error with using native libary on Android, now allowing AesKdf again
This commit is contained in:
parent
6c043e9b79
commit
e4c17e2e27
@ -121,7 +121,13 @@ namespace KeePassLib.Cryptography.KeyDerivation
|
||||
{
|
||||
// Try to use the native library first
|
||||
if (NativeLib.TransformKey256(pbNewKey, pbKeySeed32, uNumRounds))
|
||||
return CryptoUtil.HashSha256(pbNewKey);
|
||||
{
|
||||
byte[] pbKey = new byte[32];
|
||||
Array.Copy(pbNewKey, pbKey, pbNewKey.Length);
|
||||
|
||||
return pbKey;
|
||||
|
||||
}
|
||||
|
||||
if(TransformKeyManaged(pbNewKey, pbKeySeed32, uNumRounds))
|
||||
return CryptoUtil.HashSha256(pbNewKey);
|
||||
|
Loading…
Reference in New Issue
Block a user