mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2026-06-19 02:56:07 -05:00
Fix Argon2 hash alias for Windows CLI
Accept Argon2 and Argon2id aliases through HashGetIdByName so Windows mount parsing matches volume creation. Update Windows command-line documentation in English, Russian, and Chinese, and rebuild the CHM user guides.
This commit is contained in:
@@ -743,6 +743,11 @@ Hash *HashGet (int id)
|
||||
int HashGetIdByName (wchar_t *name)
|
||||
{
|
||||
int i;
|
||||
#ifndef VC_DCS_DISABLE_ARGON2
|
||||
if (_wcsicmp (name, L"Argon2") == 0 || _wcsicmp (name, L"Argon2id") == 0)
|
||||
return ARGON2;
|
||||
#endif
|
||||
|
||||
for (i = 0; Hashes[i].Id != 0; i++)
|
||||
if (_wcsicmp (Hashes[i].Name, name) == 0)
|
||||
return Hashes[i].Id;
|
||||
|
||||
Reference in New Issue
Block a user