| commit | 9295969e1dad2c31d0d99481734c1c68dcbc6403 | [log] [tgz] |
|---|---|---|
| author | David Benjamin <davidben@google.com> | Thu May 22 13:11:22 2025 -0400 |
| committer | Boringssl LUCI CQ <boringssl-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri May 23 09:51:54 2025 -0700 |
| tree | ad2e759f58557e766a02decdf8a2558ad14e8778 | |
| parent | c5795a328880eadb879088fc59cd0087edc8dc20 [diff] |
Update defaults for PKCS12_create Even the "modern" variants of the PKCS password-based private key encryption schemes are are not very modern. We largely do not treat them as load-bearing for security. Still, it's 2025, so we ought to upgrade their defaults up to late 90s and early 00s cryptography. This matches OpenSSL upstream's new behavior: - The default MAC iteration count is 2048, not 1 - The default encryption algorithm is PBES2 with AES-256-CBC, not 3DES and 40-bit RC2 - The PRF function for PBKDF2 inside PBES2 is HMAC-SHA256, not HMAC-SHA1. Update-Note: The defaults for PKCS#12 are changed as above. They match upstream OpenSSL, so any systems compatible with OpenSSL will already be compatible with this. The old defaults are still available by passing them explicitly to PKCS12_create. The one exception that OpenSSL's API does not have any way to change the PBKDF2 PRF hash in PKCS#12. We don't anticipate this being a concern. Note that this PRF change does not impact the old PBES1 schemes, only the newer PBES2 schemes. Fixed: 396434682 Change-Id: I949966483ff96796b0f76dd10b059fc98ecdeae9 Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/79527 Commit-Queue: Adam Langley <agl@google.com> Auto-Submit: David Benjamin <davidben@google.com> Reviewed-by: Adam Langley <agl@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: