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:
@@ -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 ()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user