Remove #error if OPENSSL_NO_FOO is defineddiscussed with jsing
Remove a useless EVP_MD_CTX_init() callThe hash was just created with EVP_MD_CTX_new(), so we memset a callocedpiece of memory to 0.
Stop including ecdsa.h and ecdh.h internallyThese headers are now reduced to #include <openssl/ec.h> and are providedfor compatiblity only. There's no point in using them. At the same timegarbage
Stop including ecdsa.h and ecdh.h internallyThese headers are now reduced to #include <openssl/ec.h> and are providedfor compatiblity only. There's no point in using them. At the same timegarbage collect the last uses of OPENSSL_NO_{ECDSA,ECDH} in our tree.ok jsing
show more ...
whitespace
Make header guards of internal headers consistentNot all of them, only those that didn't leak into a public header...Yes.
Make internal header file names consistentLibcrypto currently has a mess of *_lcl.h, *_locl.h, and *_local.h namesused for internal headers. Move all these headers we inherited fromOpenSSL to *_l
Make internal header file names consistentLibcrypto currently has a mess of *_lcl.h, *_locl.h, and *_local.h namesused for internal headers. Move all these headers we inherited fromOpenSSL to *_local.h, reserving the name *_internal.h for our own code.Similarly, move dtls_locl.h and ssl_locl.h to dtls_local and ssl_local.h.constant_time_locl.h is moved to constant_time.h since it's special.Adjust all .c files in libcrypto, libssl and regress.The diff is mechanical with the exception of tls13_quic.c, where#include <ssl_locl.h> was fixed manually.discussed with jsing,no objection bcook
Remove mkerr.pl remnants from LibreSSLThis script is not used at all and files are edited by hand instead.Thus remove misleading comments incl. the obsolete script/config.Feedback OK jsing tb
Fix check for BN_mod_inverse_ct return valueok jsing@ millert@ tb@
Import initial code for the SM2 cipherThis adds the SM2 algorithm defined in the Chinese standardsGB/T 32918.1-2016, GB/T 32918.2-2016, GB/T 32918.3-2016,GB/T 32918.4-2016 and GB/T 32918.5-2017.
Import initial code for the SM2 cipherThis adds the SM2 algorithm defined in the Chinese standardsGB/T 32918.1-2016, GB/T 32918.2-2016, GB/T 32918.3-2016,GB/T 32918.4-2016 and GB/T 32918.5-2017.This is an ISC licensed implementation contributed by Ribose.inc, basedon the same code that was contributed to OpenSSL by Jack Lloyd. The portto LibreSSL was done by Ronald Tse and Nickolay Olshevsky.Github PR #105I made quite a few cleanup passes on this, but more is needed, someof which will happen in-tree before this is linked to the build.ok deraadt inoguchi (a long time ago), jsing