VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Common/Crypto.c
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2017-01-10 05:25:49 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2017-01-12 09:42:54 +0100
commite831198b3b0afbcd21cb9a4b1aef90fa8b198d69 (patch)
tree5be0a3402375068ef37ce2d5b6b084c5b01d2521 /src/Common/Crypto.c
parente3d5077939898f691dcecc965e77b81a3443b662 (diff)
downloadVeraCrypt-e831198b3b0afbcd21cb9a4b1aef90fa8b198d69.tar.gz
VeraCrypt-e831198b3b0afbcd21cb9a4b1aef90fa8b198d69.zip
Windows: Fix Streebog not recognized by /hash command line switch but making hash names matching more generic.
Diffstat (limited to 'src/Common/Crypto.c')
-rw-r--r--src/Common/Crypto.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Common/Crypto.c b/src/Common/Crypto.c
index 808c8af7..6c2b2e84 100644
--- a/src/Common/Crypto.c
+++ b/src/Common/Crypto.c
@@ -762,16 +762,17 @@ Hash *HashGet (int id)
return 0;
}
-
+#ifdef _WIN32
int HashGetIdByName (wchar_t *name)
{
int i;
for (i = 0; Hashes[i].Id != 0; i++)
- if (wcscmp (Hashes[i].Name, name) == 0)
+ if (_wcsicmp (Hashes[i].Name, name) == 0)
return Hashes[i].Id;
return 0;
}
+#endif
const wchar_t *HashGetName (int hashId)
{