Skip to content

Commit

Permalink
Fix _mm_aesenclast_si128 build failure with crypto
Browse files Browse the repository at this point in the history
Co-authored-by: Xiao Wang <wangxiao@cs.northwestern.edu>
  • Loading branch information
2 people authored and jserv committed Dec 28, 2022
1 parent 06b934f commit 2ccb034
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sse2neon.h
Expand Up @@ -9889,15 +9889,15 @@ FORCE_INLINE __m128i _mm_aesenclast_si128(__m128i a, __m128i RoundKey)
FORCE_INLINE __m128i _mm_aesdeclast_si128(__m128i a, __m128i RoundKey)
{
return vreinterpretq_m128i_u8(
vaesdq_u8(vreinterpretq_u8_m128i(a), vdupq_n_u8(0))) ^
vreinterpretq_u8_m128i(RoundKey);
vaesdq_u8(vreinterpretq_u8_m128i(a), vdupq_n_u8(0)) ^
vreinterpretq_u8_m128i(RoundKey));
}

// Perform the InvMixColumns transformation on a and store the result in dst.
// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_aesimc_si128
FORCE_INLINE __m128i _mm_aesimc_si128(__m128i a)
{
return vreinterpretq_m128i_u8(vaesimcq_u8(a));
return vreinterpretq_m128i_u8(vaesimcq_u8(vreinterpretq_u8_m128i(a)));
}

// Assist in expanding the AES cipher key by computing steps towards generating
Expand Down

0 comments on commit 2ccb034

Please sign in to comment.