VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/Library/PasswordLib
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2016-10-08 11:12:20 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2016-10-17 18:17:49 +0200
commit012c9134d4f6e29c2e13e56490e47a8547d41af7 (patch)
tree2175a5b43db90c323793b35627639bfa3268a8ae /Library/PasswordLib
parentc97186ae96d4835841b02d377a9002d078a6f83b (diff)
downloadVeraCrypt-DCS-012c9134d4f6e29c2e13e56490e47a8547d41af7.tar.gz
VeraCrypt-DCS-012c9134d4f6e29c2e13e56490e47a8547d41af7.zip
define and use own version of secure memory erase macro instead of the one coming from VeraCrypt.
Diffstat (limited to 'Library/PasswordLib')
-rw-r--r--Library/PasswordLib/ConsolePassword.c2
-rw-r--r--Library/PasswordLib/PicturePassword.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/Library/PasswordLib/ConsolePassword.c b/Library/PasswordLib/ConsolePassword.c
index 1b8c48a..fc03d24 100644
--- a/Library/PasswordLib/ConsolePassword.c
+++ b/Library/PasswordLib/ConsolePassword.c
@@ -116,7 +116,7 @@ AskConsolePwdInt(
} while (key.UnicodeChar != CHAR_CARRIAGE_RETURN);
if (length != NULL) *length = count;
- burn (&key, sizeof (key));
+ MEM_BURN (&key, sizeof (key));
// Set end of line
if (asciiLine != NULL) {
asciiLine[count] = '\0';
diff --git a/Library/PasswordLib/PicturePassword.c b/Library/PasswordLib/PicturePassword.c
index 886ffcd..053a4ad 100644
--- a/Library/PasswordLib/PicturePassword.c
+++ b/Library/PasswordLib/PicturePassword.c
@@ -628,8 +628,8 @@ AskPictPwdInt(
pwdAction = PwdActNone;
} while (TRUE);
- burn (&key, sizeof (key));
- burn (&pwdNewChar, sizeof (pwdNewChar));
+ MEM_BURN (&key, sizeof (key));
+ MEM_BURN (&pwdNewChar, sizeof (pwdNewChar));
gBS->CloseEvent(InputEvents[1]);
gBS->CloseEvent(UpdateEvent);
gBS->CloseEvent(BeepOffEvent);