boringssl/crypto/bn
Adam Langley eb7d2ed1fe Add visibility rules.
This change marks public symbols as dynamically exported. This means
that it becomes viable to build a shared library of libcrypto and libssl
with -fvisibility=hidden.

On Windows, one not only needs to mark functions for export in a
component, but also for import when using them from a different
component. Because of this we have to build with
|BORINGSSL_IMPLEMENTATION| defined when building the code. Other
components, when including our headers, won't have that defined and then
the |OPENSSL_EXPORT| tag becomes an import tag instead. See the #defines
in base.h

In the asm code, symbols are now hidden by default and those that need
to be exported are wrapped by a C function.

In order to support Chromium, a couple of libssl functions were moved to
ssl.h from ssl_locl.h: ssl_get_new_session and ssl_update_cache.

Change-Id: Ib4b76e2f1983ee066e7806c24721e8626d08a261
Reviewed-on: https://boringssl-review.googlesource.com/1350
Reviewed-by: Adam Langley <agl@google.com>
2014-07-31 22:03:11 +00:00
..
asm Add visibility rules. 2014-07-31 22:03:11 +00:00
add.c Inital import. 2014-06-20 13:17:32 -07:00
bn_error.c Move public headers to include/openssl/ 2014-07-14 22:42:18 +00:00
bn_test.c Include some build fixes for OS X. 2014-06-24 11:15:12 -07:00
bn.c Inital import. 2014-06-20 13:17:32 -07:00
CMakeLists.txt The asm files bn/asm/x86* weren't actually used. 2014-07-02 00:29:12 +00:00
cmp.c Inital import. 2014-06-20 13:17:32 -07:00
convert.c A bunch of dead assignments. 2014-07-30 00:44:03 +00:00
ctx.c Inital import. 2014-06-20 13:17:32 -07:00
div.c Check for invalid divisors in BN_div. 2014-06-20 13:17:33 -07:00
exponentiation.c A bunch of dead assignments. 2014-07-30 00:44:03 +00:00
gcd.c Inital import. 2014-06-20 13:17:32 -07:00
generic.c Inital import. 2014-06-20 13:17:32 -07:00
internal.h Include some build fixes for OS X. 2014-06-24 11:15:12 -07:00
kronecker.c Inital import. 2014-06-20 13:17:32 -07:00
montgomery.c bignum: allow concurrent BN_MONT_CTX_set_locked() 2014-06-20 13:17:40 -07:00
mul.c Make sure BN_sqr can never return a negative value. 2014-07-28 17:05:12 -07:00
prime.c Small prime generation. 2014-06-20 13:17:34 -07:00
random.c Very minor BN fixes. 2014-06-30 14:22:32 -07:00
rsaz_exp.c Support building with PNaCl. 2014-07-11 19:04:04 +00:00
rsaz_exp.h Inital import. 2014-06-20 13:17:32 -07:00
shift.c Inital import. 2014-06-20 13:17:32 -07:00
sqrt.c Add function to recover RSA CRT params. 2014-06-20 13:17:35 -07:00