commit | ea53011c6e8e68bd1c1d2883cc11cbf2d004835f | [log] [tgz] |
---|---|---|
author | David Benjamin <davidben@google.com> | Mon Apr 06 23:39:42 2020 -0400 |
committer | CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org> | Wed Apr 08 00:40:10 2020 +0000 |
tree | 6143f0767661da7431293d147227aa7ff23bf298 | |
parent | ad5e3e3597f98bca70b2f2e11dc439000d092a44 [diff] |
Generalize bn_from_montgomery_small. Montgomery reduction works when the input is at most N*R (N^2 is a tighter bound that's easier to describe and usually suffices). This is useful when reducing product-sized values. In particular, hash-to-curve's hash_to_field function requires a reduction. Generalize this so we can implement it with Montgomery reduction. Bug: chromium:1014199 Change-Id: I1a07f9b94823742384a98c0c6fecdedfe5240b7b Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/40588 Commit-Queue: 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:
There are other files in this directory which might be helpful: