diff --git a/src/KeePassOTP.cs b/src/KeePassOTP.cs index ef3f266..9d6ed95 100644 --- a/src/KeePassOTP.cs +++ b/src/KeePassOTP.cs @@ -219,7 +219,7 @@ private byte[] ComputeHash(byte[] data) HMAC hmac = null; if (Hash == KPOTPHash.SHA256) hmac = new HMACSHA256(m_key); - if (Hash == KPOTPHash.SHA512) hmac = new HMACSHA512(m_key); + else if (Hash == KPOTPHash.SHA512) hmac = new HMACSHA512(m_key); else hmac = new HMACSHA1(m_key, true); byte[] r = hmac.ComputeHash(data); diff --git a/src/Properties/AssemblyInfo.cs b/src/Properties/AssemblyInfo.cs index ff09006..5385df7 100644 --- a/src/Properties/AssemblyInfo.cs +++ b/src/Properties/AssemblyInfo.cs @@ -30,5 +30,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("0.20")] -[assembly: AssemblyFileVersion("0.20")] \ No newline at end of file +[assembly: AssemblyVersion("0.20.1")] +[assembly: AssemblyFileVersion("0.20.1")] \ No newline at end of file diff --git a/version.info b/version.info index 2cfe305..3826f3e 100644 --- a/version.info +++ b/version.info @@ -1,5 +1,5 @@ : -KeePassOTP:0.20 +KeePassOTP:0.20.1 KeePassOTP!de:11 KeePassOTP!fr:3 :