mirror of
https://github.com/veracrypt/VeraCrypt
synced 2024-11-10 13:13:34 +01:00
Windows bootloader: Mask/unmask PIM value in bootloader the same way as the password
This commit is contained in:
parent
86dc27dcb8
commit
8dc1dd2fb4
@ -64,7 +64,7 @@ static void PrintMainMenu ()
|
||||
return;
|
||||
|
||||
Print (" Keyboard Controls:\r\n");
|
||||
Print (" [F5] Hide/Show Password\r\n");
|
||||
Print (" [F5] Hide/Show Password and PIM\r\n");
|
||||
Print (" [Esc] ");
|
||||
|
||||
#ifndef TC_WINDOWS_BOOT_RESCUE_DISK_MODE
|
||||
@ -246,6 +246,10 @@ static byte AskPassword (Password &password, int& pim)
|
||||
}
|
||||
continue;
|
||||
|
||||
case TC_BIOS_KEY_F5:
|
||||
hidePassword ^= 0x01;
|
||||
continue;
|
||||
|
||||
default:
|
||||
if (scanCode == TC_BIOS_KEY_ESC || IsMenuKey (scanCode))
|
||||
{
|
||||
@ -265,7 +269,8 @@ static byte AskPassword (Password &password, int& pim)
|
||||
|
||||
pim = 10*pim + (asciiCode - '0');
|
||||
pos++;
|
||||
|
||||
|
||||
if (hidePassword) asciiCode = '*';
|
||||
if (pos < MAX_PIM)
|
||||
PrintChar (asciiCode);
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user