mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-12 11:28:26 -06:00
Windows: Fix Streebog not recognized by /hash command line switch but making hash names matching more generic.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -363,7 +363,9 @@ BOOL EAIsModeSupported (int ea, int testedMode);
|
||||
|
||||
#ifndef TC_WINDOWS_BOOT
|
||||
const wchar_t *HashGetName (int hash_algo_id);
|
||||
|
||||
#ifdef _WIN32
|
||||
int HashGetIdByName (wchar_t *name);
|
||||
#endif
|
||||
Hash *HashGet (int id);
|
||||
void HashGetName2 (wchar_t *buf, int hashId);
|
||||
BOOL HashIsDeprecated (int hashId);
|
||||
|
||||
Reference in New Issue
Block a user