[gnutls-devel] Patch: AES-NI not used for GCM on 32bit x86
nmav at gnutls.org
Sat Feb 14 18:02:59 CET 2015
On Sat, 2015-02-14 at 16:31 +0100, Tim Kosse wrote:
> GnuTLS has the assembly code to accelerate AES-GCM using the AES-NI
> instruction set on both IA-32 and x86-64. In contrast, support for
> PCLMUL with AES-GCM is only implemented for x86-64.
> There's a misplaced #ifdef ASM_X86_64 in
> lib/accelerated/x86/x86-common.c around the check for pclmul,
> effectively disabling AES-NI for AES-GCM on IA-32 builds.
> The attached patch (tested against 3.3.12) moves the else block out of
> the #ifdef so that AES-NI is used to accelerate AES-GCM on IA-32 builds.
More information about the Gnutls-devel