Added logging regarding native key transform

This commit is contained in:
Philipp Crocoll 2013-08-02 16:48:22 +02:00
parent e6bf40321b
commit 8693dfe9f4

View File

@ -25,6 +25,7 @@ using System.Runtime.InteropServices;
using System.Diagnostics; using System.Diagnostics;
using KeePassLib.Utility; using KeePassLib.Utility;
using keepass2android;
namespace KeePassLib.Native namespace KeePassLib.Native
{ {
@ -169,8 +170,9 @@ namespace KeePassLib.Native
byte[] newKey = key.TransformMasterKey(pKey256, pBuf256, (int)uRounds); byte[] newKey = key.TransformMasterKey(pKey256, pBuf256, (int)uRounds);
Array.Copy(newKey, pBuf256, newKey.Length); Array.Copy(newKey, pBuf256, newKey.Length);
} }
catch(Exception e) catch(Exception e)
{ {
Kp2aLog.Log(e.Message);
return false; return false;
} }