bpo-30102: Improve libssl performance on POWER8 for, e.g sha256 by gut · Pull Request #1181 · python/cpython (original) (raw)
I don't think that OPENSSL_INIT_ENGINE_ALL_BUILTIN
is a good idea, either. It loads too many engines. Hashing and crypto accelerator engines are covered by OPENSSL_INIT_ADD_ALL_CIPHERS
and OPENSSL_INIT_ADD_ALL_DIGEST
, both are default. The ALL_BUILTIN
option also loads and potentially enables RDRAND
on Intel, CRYPTODEV
on BSD, PADLOCK
on VIA CPUs, CAPI
on Windows and more.
I don't trust RDRAND
and so do countless people which more security experience than me. Before I agree on ENGINE_load_builtin_engines()
, we must make sure that the call does not register any of the extra engines and set them as default provider for ciphers, digests, RSA, ECDSA, RNG and so on.