Re: [openssl-dev] Stitched AES-NI AES-GCM code & AVX2

2016-06-11 Thread Andy Polyakov
>>> But, I think the stitched AES-NI AES-GCM code requires AVX2, not just >>> AVX. >> >> No, it doesn't. It requires exactly AVX+MOVBE. > > I see. I was confused because the code says: > > if ($avx>1) {{{ > > I had been thinking the whole time that "$avx > 1" means that AVX2 is >

Re: [openssl-dev] Stitched AES-NI AES-GCM code & AVX2

2016-06-11 Thread Brian Smith
Andy Polyakov wrote: >> But, I think the stitched AES-NI AES-GCM code requires AVX2, not just >> AVX. > > No, it doesn't. It requires exactly AVX+MOVBE. I see. I was confused because the code says: if ($avx>1) {{{ I had been thinking the whole time that "$avx > 1" means

Re: [openssl-dev] Stitched AES-NI AES-GCM code & AVX2

2016-06-11 Thread Andy Polyakov
Hi, > I see that the stitched AES-NI AES-GCM code will be used if : > > gctx->ctr==aesni_ctr32_encrypt_blocks && \ > gctx->gcm.ghash==gcm_ghash_avx) > > In gcm128, I see that it decides to use gcm_ghash_avx if: > > /* AVX+MOVBE */ > if (((OPENSSL_ia32cap_P[1] >> 22) & 0x41) ==

[openssl-dev] Stitched AES-NI AES-GCM code & AVX2

2016-06-09 Thread Brian Smith
Hi, I see that the stitched AES-NI AES-GCM code will be used if : gctx->ctr==aesni_ctr32_encrypt_blocks && \ gctx->gcm.ghash==gcm_ghash_avx) In gcm128, I see that it decides to use gcm_ghash_avx if: /* AVX+MOVBE */ if (((OPENSSL_ia32cap_P[1] >> 22) & 0x41) == 0x41) { But, I