commit | bc0c8402edc5f3f4ac5c83036083946bb7f5560b | [log] [tgz] |
---|---|---|
author | Miriam Polzer <mpolzer@google.com> | Fri Sep 05 13:14:05 2025 +0200 |
committer | Boringssl LUCI CQ <boringssl-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Oct 09 12:19:22 2025 -0700 |
tree | 736f8701333066439f501690abe6842ccd0f28a5 | |
parent | 559e8f954a331a94cc56809d747fe05cfc43abe6 [diff] |
Prevent false positive in constant time checks An optimization around the array access of in made valgrind think this loop was non-constant time, while in fact it is. Prevent this optimization by adding a value barrier. See bug for more details. Test: cmake -DCONSTANT_TIME_VALIDATION=1 -DCMAKE_BUILD_TYPE=Release \ -GNinja -B build && \ ninja -C build && \ valgrind ./build/crypto_test \ --gtest_filter=*PerAEADTest.UnalignedInput/AES_128_CBC_SHA1_TLS* Test: cmake -DCMAKE_BUILD_TYPE=Release -GNinja -B build && \ ninja -C build && ./build/crypto_test Bug: 436788086 Change-Id: I3f00d06c71cb3b30146dde890f157078915ea1f4 Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/81867 Reviewed-by: David Benjamin <davidben@google.com> Auto-Submit: Miriam Polzer <mpolzer@google.com> Commit-Queue: David Benjamin <davidben@google.com>
BoringSSL is a fork of OpenSSL that is designed to meet Google's needs.
Although BoringSSL is an open source project, it is not intended for general use, as OpenSSL is. We don't recommend that third parties depend upon it. Doing so is likely to be frustrating because there are no guarantees of API or ABI stability.
Programs ship their own copies of BoringSSL when they use it and we update everything as needed when deciding to make API changes. This allows us to mostly avoid compromises in the name of compatibility. It works for us, but it may not work for you.
BoringSSL arose because Google used OpenSSL for many years in various ways and, over time, built up a large number of patches that were maintained while tracking upstream OpenSSL. As Google's product portfolio became more complex, more copies of OpenSSL sprung up and the effort involved in maintaining all these patches in multiple places was growing steadily.
Currently BoringSSL is the SSL library in Chrome/Chromium, Android (but it's not part of the NDK) and a number of other apps/programs.
Project links:
To file a security issue, use the Chromium process and mention in the report this is for BoringSSL. You can ignore the parts of the process that are specific to Chromium/Chrome.
There are other files in this directory which might be helpful: