[PATCH] libgcrypt-1.5: rinjdael: Fix use of SSE2 outside USE_AESNI/ctx->use_aesni
1xx
itsango at gmail.com
Wed Jan 30 02:08:07 CET 2013
I applied this patch on libgcrypt11-1.5.0.
And I tested it and gnome-keyring-3.8.1 .
Then I checked the normal performance .
May I open this mail to Dropbox ?
It may help those who are in trouble like me .
I think that I should show everybody ML .
However, http://lists.gnupg.org/pipermail/ is set to "403 Forbidden",
and cannot be seen freely.
Please tell me your opinions .
2013/1/29 Jussi Kivilinna <jussi.kivilinna at mbnet.fi>:
> * cipher/rijndael.c (_gcry_aes_cbc_enc, _gcry_aes_cbc_dec): Check if
> AES-NI is enabled before calling aesni_prepare() and aesni_cleanup().
> --
>
> aesni_cleanup() contains SSE2 instructions that are interpreted as MMX on CPUs
> without SSE2 support (Pentium-III, etc). In above functions, aesni_cleanup()
> was called outside use_aesni checks. This causes x87 register state to be
> poisoned, causing crashes later on when program tries to use floating point
> registers.
>
> Add missing '#ifdef USE_AESNI' and 'if (ctx->use_aesni)' for aesni_cleanup()
> and, while at it, for aesni_prepare() too.
--
1xx <ItSANgo at gmail.com>
More information about the Gcrypt-devel
mailing list