refactor: replace use of deprecated crypto API

https://crbug.com/364687923
This commit is contained in:
Charles Kerr
2024-10-01 10:35:43 -05:00
parent 6e9f3105aa
commit 6a597c9280

View File

@@ -104,8 +104,7 @@ bool AsarFileValidator::FinishBlock() {
if (!file_.ReadAndCheck(offset, abandoned_buffer)) {
LOG(FATAL) << "Failed to read required portion of streamed ASAR archive";
}
current_hash_->Update(&abandoned_buffer.front(), bytes_needed);
current_hash_->Update(abandoned_buffer);
}
auto actual = std::array<uint8_t, crypto::kSHA256Length>{};