X-Git-Url: https://www.bearssl.org/gitweb//home/git/?p=BearSSL;a=blobdiff_plain;f=src%2Fsymcipher%2Faes_x86ni_cbcdec.c;h=c97ce4890ec65b3758b31c281e12d3ee3ed36078;hp=6f75348bc028c522f06e3e1b3eed1b569b29f98f;hb=a52cff8309f48ca8487410cfa2a8fb6c11152e2b;hpb=5f045c759957fdff8c85716e6af99e10901fdac0 diff --git a/src/symcipher/aes_x86ni_cbcdec.c b/src/symcipher/aes_x86ni_cbcdec.c index 6f75348..c97ce48 100644 --- a/src/symcipher/aes_x86ni_cbcdec.c +++ b/src/symcipher/aes_x86ni_cbcdec.c @@ -27,6 +27,9 @@ #if BR_AES_X86NI #if BR_AES_X86NI_GCC +#if BR_AES_X86NI_GCC_OLD +#pragma GCC target("sse2,sse4.1,aes,pclmul") +#endif #include #endif @@ -75,14 +78,16 @@ br_aes_x86ni_cbcdec_run(const br_aes_x86ni_cbcdec_keys *ctx, if (len >= 48) { x2 = _mm_loadu_si128( (void *)(buf + 32)); + x3 = x2; } else { x2 = x0; + x3 = x1; } } else { x1 = x0; x2 = x0; + x3 = x0; } - x3 = x0; } e0 = x0; e1 = x1;