mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
refactor: replace use of deprecated crypto API
https://crbug.com/364687923
This commit is contained in:
@@ -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>{};
|
||||
|
||||
Reference in New Issue
Block a user