Skip to content

Commit

Permalink
digest: fix checking of digest on restore
Browse files Browse the repository at this point in the history
Change-Id: I40ec9848248b9cc62919535c5493090d80cd732a
  • Loading branch information
bigbiff authored and epicX67 committed Nov 4, 2021
1 parent 4061833 commit 0a44067
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions twrpDigestDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ bool twrpDigestDriver::Check_File_Digest(const string& Filename) {
return false;
}
string digest_check = digest->return_digest_string();
digest_check = digest_check + " " + TWFunc::Get_Filename(file_name);
if (digest_check == digest_str) {
if (use_sha2)
LOGINFO("SHA2 Digest: %s %s\n", digest_str.c_str(), TWFunc::Get_Filename(Filename).c_str());
Expand Down

0 comments on commit 0a44067

Please sign in to comment.