boringssl/crypto/evp
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
..
algorithm.c Don't mix and match libraries and errors. 2014-10-13 22:56:28 +00:00
asn1.c Allow PKCS#8 in d2i_AutoPrivateKey. 2014-11-05 00:42:58 +00:00
CMakeLists.txt Precompute sorted array for error strings. 2015-02-09 17:35:31 -08:00
digestsign.c Make EVP_DigestVerifyFinal return only zero or one. 2014-10-28 20:22:46 +00:00
evp_ctx.c Remove string.h from base.h. 2015-02-02 19:14:15 +00:00
evp_test.c Fix memory-leak in evp_test. 2015-02-06 20:56:18 +00:00
evp.c Remove string.h from base.h. 2015-02-02 19:14:15 +00:00
internal.h Add EVP_PKEY_supports_digest. 2014-11-18 22:18:36 +00:00
p_ec_asn1.c Add EVP_PKEY_supports_digest. 2014-11-18 22:18:36 +00:00
p_ec.c Remove string.h from base.h. 2015-02-02 19:14:15 +00:00
p_hmac_asn1.c Add EVP_PKEY_supports_digest. 2014-11-18 22:18:36 +00:00
p_hmac.c Remove string.h from base.h. 2015-02-02 19:14:15 +00:00
p_rsa_asn1.c Add EVP_PKEY_supports_digest. 2014-11-18 22:18:36 +00:00
p_rsa.c Remove string.h from base.h. 2015-02-02 19:14:15 +00:00
pbkdf_test.c Remove string.h from base.h. 2015-02-02 19:14:15 +00:00
pbkdf.c Remove string.h from base.h. 2015-02-02 19:14:15 +00:00
sign.c Remove remnants of EVP_MD_FLAG_PKEY_METHOD_SIGNATURE. 2014-11-04 00:27:19 +00:00