TLS does not invoke hardware acceleration except on Intel/AMD platform

Matt Caswell matt at
Wed Sep 25 15:26:27 UTC 2019

On 25/09/2019 15:26, Mark Hack wrote:
> ssl_algs.c is missing the required call to OPENSSL_cpuid_setup() which
> means that all the platforms which rely on the CPU ID to be set
> (everything except Intel/AMD) never use any of the EVP calls and do not
> hardware accelerate TLS. Yes, the performance tests work but these do
> not use libssl.
> Patching ssl_algs.c corrects this and the performance improvement is
> immediatly noticable. This is the patch applied and tested on PPC.
> int SSL_library_init(void)
> {
> 	OPENSSL_cpuid_init_setup();	/* Identify the HW platform */
> ...

Which version of OpenSSL do you see this in? In 1.1.1 at least I see the call to
OPENSSL_cpuid_setup() in the default initialisation code:


More information about the openssl-users mailing list