1
0
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:
Mounir IDRASSI
2026-06-15 17:53:04 +09:00
parent a8a8e50ae8
commit cb2f20ab94
7 changed files with 17 additions and 12 deletions
+5
View File
@@ -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;