commit | 447c33d8fe9d48c175b69f41217c6c51574ea56d | [log] [tgz] |
---|---|---|
author | Javier Fernández García-Boente <jfernandez@igalia.com> | Mon Apr 08 10:28:56 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Apr 08 10:28:56 2024 |
tree | 096903bf0332c1c14307c9cc41ac98d72350e7f4 | |
parent | 842b0c8ca984106c06b58f4ed5518fb211e82bcc [diff] |
Crypto Histograms must be executed after the deriveBits operation In r1227708 we have added use counters to measure the usage of the deriveBits's 'length' parameter with 2 specific values. The counter to detect non-zero truncation should be executed after the deriveBits operation is completed, since only then we can know the size of the derived key and whether the length's parameter value implies that the key is being truncated. In r1227708 we executed the counters just after calling Blink's platform WebCryptoImpl::DeriveBits method, which is asynchronous. Hence, we were checking for the warning before we actually set it in the WebCrypto component's code. This CL moves the call to the WebCryptoImpl::DoDeriveBitsReply func, invoked as an async post-task. This changes requires to declare the HistogramDeriveBitsTruncation function in the Blink public platform as an exported symbol, so that it could be invoked from the webcrypto component. Bug: 1439774 Change-Id: I510e4bb9d35ed38da573bedb2e62ad35eebc6a89 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5328466 Reviewed-by: Dmitry Gozman <dgozman@chromium.org> Commit-Queue: Javier Fernandez <jfernandez@igalia.com> Reviewed-by: David Benjamin <davidben@chromium.org> Cr-Commit-Position: refs/heads/main@{#1283786}
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.