VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Common/Cache.c
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2019-01-28 14:58:41 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2019-01-28 17:16:33 +0100
commitcdd1179c63bb892696adfad1818d65e3026916ca (patch)
treee2d7265440b8cc51ca544d2c2412041b0d18439d /src/Common/Cache.c
parent54e46c260cf04861c99d8b2590999c1eb33f0cb1 (diff)
downloadVeraCrypt-cdd1179c63bb892696adfad1818d65e3026916ca.tar.gz
VeraCrypt-cdd1179c63bb892696adfad1818d65e3026916ca.zip
Increase password maximum length to 128 bytes from 64 bytes
Diffstat (limited to 'src/Common/Cache.c')
-rw-r--r--src/Common/Cache.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Common/Cache.c b/src/Common/Cache.c
index 2412ba59..4a4ebc9a 100644
--- a/src/Common/Cache.c
+++ b/src/Common/Cache.c
@@ -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 ()
{