| commit | 4a60182c5fa5a31b06c3fbabef4d3a50923222d3 | [log] [tgz] |
|---|---|---|
| author | Andrew Rayskiy <greengrape@google.com> | Wed Mar 12 21:57:50 2025 |
| committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Mar 12 21:57:50 2025 |
| tree | b8c109974ef72dd58debaf5dfe71c3a8fdb188a4 | |
| parent | 2c130963d4ab2f4ba75126dbd154a047937af817 [diff] |
iwa: Decoupling SignedWebBundleReader from IwaReaderFactory This CL attempts to decouple the two classes that are currently heavily intertwined: * SwbnReader is created by IwaReaderFactory and tasked with reading the integrity block; * After reading the control returns to IwaReaderFactory which then validates the integrity block; * Depending on the outcome, IwaReaderFactory calls into SwbnReader again and instructs it to proceed with signature verification. This CL inverts the controls -- instead of four hops (IwaReader -> SwbnReader -> IwaReader -> SwbnReader -> IwaReader) we now have only one; the SwbnReader will verify signatures autonomously if the corresponding flag is set at creation time; and the additional trust checks on the integrity block will be performed after signature verification. Bug: 402244836 Change-Id: If92549b77489f75007e0bca808f179073e7dbf6f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6333079 Reviewed-by: Robbie McElrath <rmcelrath@chromium.org> Commit-Queue: Andrew Rayskiy <greengrape@google.com> Cr-Commit-Position: refs/heads/main@{#1431772}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure.
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.