diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2016-08-17 22:10:07 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2016-08-17 22:10:07 +0200 |
commit | 2b284e88262c33a225bda77004a20a23f2214632 (patch) | |
tree | 6a4386ef53b014c3a1566d6772cbe23d236770bc | |
parent | b87fc6b140772ba3017de311c7063c259424264c (diff) | |
download | VeraCrypt-DCS-VeraCrypt_1.18.tar.gz VeraCrypt-DCS-VeraCrypt_1.18.zip |
Better error message when authorization fails (and change Decript to Decrypt in the error message).VeraCrypt_1.18
-rw-r--r-- | DcsCfg/DcsCfgCrypt.c | 2 | ||||
-rw-r--r-- | DcsInt/DcsInt.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/DcsCfg/DcsCfgCrypt.c b/DcsCfg/DcsCfgCrypt.c index d43b473..4dab9bc 100644 --- a/DcsCfg/DcsCfgCrypt.c +++ b/DcsCfg/DcsCfgCrypt.c @@ -117,7 +117,7 @@ TryHeaderDecrypt( headerCryptoInfo);
if (vcres != 0) {
- ERR_PRINT(L"Decrypt error(%x)\n", vcres);
+ ERR_PRINT(L"Authorization failed. Wrong password, PIM or hash. Decrypt error(%x)\n", vcres);
return EFI_INVALID_PARAMETER;
}
OUT_PRINT(L"%H" L"Success\n" L"%N", vcres);
diff --git a/DcsInt/DcsInt.c b/DcsInt/DcsInt.c index 3867067..ced318c 100644 --- a/DcsInt/DcsInt.c +++ b/DcsInt/DcsInt.c @@ -639,7 +639,7 @@ SecRegionTryDecrypt() if (gAuthPwdCode == AskPwdRetCancel) {
return EFI_NOT_READY;
}
- OUT_PRINT(L"Authorize...\n\r");
+ OUT_PRINT(L"Authorizing...\n\r");
do {
CopyMem(Header, SecRegionData + SecRegionOffset, 512);
vcres = ReadVolumeHeader(gAuthBoot, Header, &gAuthPassword, gAuthHash, gAuthPim, gAuthTc, &SecRegionCryptInfo, NULL);
@@ -650,7 +650,7 @@ SecRegionTryDecrypt() OUT_PRINT(L"start %lld len %lld\n", SecRegionCryptInfo->EncryptedAreaStart.Value, SecRegionCryptInfo->EncryptedAreaLength.Value);
break;
} else {
- ERR_PRINT(L"Decript error(%x)\n\r", vcres);
+ ERR_PRINT(L"Authorization failed. Wrong password, PIM or hash. Decrypt error(%x)\n\r", vcres);
}
} while (vcres != 0 && gAuthRetry != 0);
if (vcres != 0) {
|