boringssl/crypto/bn
Adam Langley 29b186736c Precompute sorted array for error strings.
Previously, error strings were kept in arrays for each subdirectory and
err.c would iterate over them all and insert them at init time to a hash
table.

This means that, even if you have a shared library and lots of processes
using that, each process has ~30KB of private memory from building that
hash table.

This this change, all the error strings are built into a sorted list and
are thus static data. This means that processes can share the error
information and it actually saves binary space because of all the
pointer overhead in the old scheme. Also it saves the time taken
building the hash table at startup.

This removes support for externally-supplied error string data.

Change-Id: Ifca04f335c673a048e1a3e76ff2b69c7264635be
2015-02-09 17:35:31 -08:00
..
asm Convert latin-1 files to UTF-8. 2015-01-29 17:26:36 -08:00
add.c Inital import. 2014-06-20 13:17:32 -07:00
bn_test.c Remove string.h from base.h. 2015-02-02 19:14:15 +00:00
bn.c Remove string.h from base.h. 2015-02-02 19:14:15 +00:00
CMakeLists.txt Precompute sorted array for error strings. 2015-02-09 17:35:31 -08:00
cmp.c Inital import. 2014-06-20 13:17:32 -07:00
convert.c Remove string.h from base.h. 2015-02-02 19:14:15 +00:00
ctx.c Remove string.h from base.h. 2015-02-02 19:14:15 +00:00
div.c aarch64 support. 2015-01-14 23:38:11 +00:00
exponentiation.c Remove string.h from base.h. 2015-02-02 19:14:15 +00:00
gcd.c Inital import. 2014-06-20 13:17:32 -07:00
generic.c aarch64 support. 2015-01-14 23:38:11 +00:00
internal.h aarch64 support. 2015-01-14 23:38:11 +00:00
kronecker.c Inital import. 2014-06-20 13:17:32 -07:00
montgomery.c Remove string.h from base.h. 2015-02-02 19:14:15 +00:00
mul.c Remove string.h from base.h. 2015-02-02 19:14:15 +00:00
prime.c Enable more warnings & treat warnings as errors on Windows. 2015-01-31 00:18:55 +00:00
random.c Remove string.h from base.h. 2015-02-02 19:14:15 +00:00
rsaz_exp.c Support building with PNaCl. 2014-07-11 19:04:04 +00:00
rsaz_exp.h Convert all zero-argument functions to '(void)' 2014-08-21 01:06:07 +00:00
shift.c Remove string.h from base.h. 2015-02-02 19:14:15 +00:00
sqrt.c Add function to recover RSA CRT params. 2014-06-20 13:17:35 -07:00