1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-11 19:08:26 -06:00

Increase password maximum length to 128 bytes from 64 bytes

This commit is contained in:
Mounir IDRASSI
2019-01-28 14:58:41 +01:00
parent 54e46c260c
commit cdd1179c63
51 changed files with 267 additions and 220 deletions

View File

@@ -105,6 +105,16 @@ void AddPasswordToCache (Password *password, int pim)
cacheEmpty = 0;
}
void AddLegacyPasswordToCache (PasswordLegacy *password, int pim)
{
Password inputPass = {0};
inputPass.Length = password->Length;
memcpy (inputPass.Text, password->Text, password->Length);
AddPasswordToCache (&inputPass, pim);
burn (&inputPass, sizeof (inputPass));
}
void WipeCache ()
{