CVSROOT:        /cvs
Module name:    src
Changes by:     t...@cvs.openbsd.org    2024/09/06 03:57:32

Modified files:
        lib/libcrypto  : cryptlib.c crypto_internal.h 
        lib/libcrypto/evp: e_aes.c 
        lib/libcrypto/modes: gcm128.c 

Log message:
Reenable AES-NI in libcrypto

The OPENSSL_cpu_caps() change after the last bump missed a crucial bit:
there is more MD mess in the MI code than anticipated, with the result
that AES is now used without AES-NI on amd64 and i386, hurting machines
that previously greatly benefitted from it.

Temporarily add an internal crypto_cpu_caps_ia32() API that returns the
OPENSSL_ia32cap_P or 0 like OPENSSL_cpu_caps() previously did. This can
be improved after the release.

Regression reported and fix tested by Mark Patruck.
No impact on public ABI or API.

with/ok jsing

PS: Next time my pkg_add feels very slow, I should perhaps not mechanically
blame IEEE 802.11...

Reply via email to