[PATCH] Rinjdael: Fix use of SSE2 outside USE_AESNI/ctx->use_aesni
1xx
itsango at gmail.com
Tue Jan 29 08:18:05 CET 2013
Hi .
I used the following trick for the bug shot on old CPU .
I send it for reference .
Please confirm it .
Thanks .
--
1xx <ItSANgo at gmail.com>
-------- diff -u rijndael.c.orig2 rijndael.c >trick.diff --------
--- rijndael.c.orig2 2013-01-29 08:50:34.910273459 +0900
+++ rijndael.c 2013-01-29 14:07:50.509762013 +0900
@@ -141,6 +141,8 @@
# define aesni_cleanup() \
do { asm volatile ("pxor %%xmm0, %%xmm0\n\t" \
"pxor %%xmm1, %%xmm1\n" :: ); \
+ volatile double d = 1.0; \
+ if (d != 1.0) { fprintf(stderr, "double is %f\n", d); abort(); } \
} while (0)
# define aesni_cleanup_2_4() \
do { asm volatile ("pxor %%xmm2, %%xmm2\n\t" \
More information about the Gcrypt-devel
mailing list