electron/shell/common/asar
trop[bot] 00c0948e7b
refactor: take a uint8_t span in ValidateIntegrityOrDie() (#43614)
refactor: take a uint8_t span in ValidateIntegrityOrDie()

Doing some groundwork for fixing unsafe base::File() APIs:

- Change ValidateIntegrityOrDie() to take a span<const uint8_t> arg.
  We'll need this to migrate asar's base::File API calls away from the
  ones tagged `UNSAFE_BUFFER_USAGE` because the safe counterparts use
  span<uint8_t> too.

- Simplify ValidateIntegrityOrDie()'s implementation by using
  crypto::SHA256Hash() instead of reinventing the wheel.

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
2024-09-06 22:16:51 -05:00
..
archive.cc refactor: take a uint8_t span in ValidateIntegrityOrDie() (#43614) 2024-09-06 22:16:51 -05:00
archive.h chore: replace absl::optional<T> with std::optional<T> (#40928) 2024-01-10 16:23:35 -06:00
archive_mac.mm chore: replace absl::optional<T> with std::optional<T> (#40928) 2024-01-10 16:23:35 -06:00
archive_win.cc chore: bump chromium to 122.0.6261.6 (main) (#40949) 2024-01-25 12:46:30 -05:00
asar_util.cc refactor: take a uint8_t span in ValidateIntegrityOrDie() (#43614) 2024-09-06 22:16:51 -05:00
asar_util.h refactor: take a uint8_t span in ValidateIntegrityOrDie() (#43614) 2024-09-06 22:16:51 -05:00
scoped_temporary_file.cc refactor: take a uint8_t span in ValidateIntegrityOrDie() (#43614) 2024-09-06 22:16:51 -05:00
scoped_temporary_file.h chore: replace absl::optional<T> with std::optional<T> (#40928) 2024-01-10 16:23:35 -06:00