From 012c9134d4f6e29c2e13e56490e47a8547d41af7 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sat, 8 Oct 2016 11:12:20 +0200 Subject: define and use own version of secure memory erase macro instead of the one coming from VeraCrypt. --- DcsCfg/DcsCfgCrypt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'DcsCfg') diff --git a/DcsCfg/DcsCfgCrypt.c b/DcsCfg/DcsCfgCrypt.c index 4b700b6..7295756 100644 --- a/DcsCfg/DcsCfgCrypt.c +++ b/DcsCfg/DcsCfgCrypt.c @@ -168,7 +168,7 @@ ChangePassword( } VCAskPwd(AskPwdConfirm, &confirmPassword); if (gAuthPwdCode == AskPwdRetCancel) { - burn(&newPassword, sizeof(newPassword)); + MEM_BURN(&newPassword, sizeof(newPassword)); return EFI_NOT_READY; } if (newPassword.Length == confirmPassword.Length) { @@ -200,8 +200,8 @@ ChangePassword( FALSE); - burn(&newPassword, sizeof(newPassword)); - burn(&confirmPassword, sizeof(confirmPassword)); + MEM_BURN(&newPassword, sizeof(newPassword)); + MEM_BURN(&confirmPassword, sizeof(confirmPassword)); if (vcres != 0) { ERR_PRINT(L"header create error(%x)\n", vcres); -- cgit v1.2.3