commit | c49c9e7e61f5ddf24264c19fbe62996d396e5e0c | [log] [tgz] |
---|---|---|
author | David Benjamin <davidben@google.com> | Wed May 17 15:02:31 2017 -0400 |
committer | Adam Langley <agl@google.com> | Wed May 17 23:11:47 2017 +0000 |
tree | 5534806d7ec75aafec9bd1ee2ff2e5b1e910226a | |
parent | a4f7cc206f83223aca395c16cfd85dfbd546dbe4 [diff] |
Optimize constant-time base64 implementation slightly. Rather than comparing against both endpoints, subtract the minimum and rely on unsigned wraparound to do both comparisons at once. This seems to be slightly faster. In addition, constant_time_lt_8 becomes much simpler if it can assume that |a| and |b| have the same MSB. But we can arrange that by casting up to |crypto_word_t| (which is otherwise happening anyway). Change-Id: I82bd676e487eb7bb079ba7286df724c1c380bbb4 Reviewed-on: https://boringssl-review.googlesource.com/16445 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.
There are other files in this directory which might be helpful: