VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2015-08-28 19:12:28 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2015-08-28 19:32:29 +0200
commit8dc1dd2fb44216d964abf47f8e5b3181b18c42f1 (patch)
tree6d3d6dbc8d95b0fa4beb72f5063a3457999c0fe5 /src
parent86dc27dcb831165c1c0140501b870c8092caa558 (diff)
downloadVeraCrypt-8dc1dd2fb44216d964abf47f8e5b3181b18c42f1.tar.gz
VeraCrypt-8dc1dd2fb44216d964abf47f8e5b3181b18c42f1.zip
Windows bootloader: Mask/unmask PIM value in bootloader the same way as the password
Diffstat (limited to 'src')
-rw-r--r--src/Boot/Windows/BootMain.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/Boot/Windows/BootMain.cpp b/src/Boot/Windows/BootMain.cpp
index d2494e8f..7101139d 100644
--- a/src/Boot/Windows/BootMain.cpp
+++ b/src/Boot/Windows/BootMain.cpp
@@ -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