From 645be6f3f7345f3da74ebbd90f6f96c6f99faef0 Mon Sep 17 00:00:00 2001 From: Yang Hau Date: Tue, 27 Dec 2022 13:28:24 +0800 Subject: [PATCH] Fix _mm_aesenclast_si128 build failure with crypto Co-authored-by: Xiao Wang --- sse2neon.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sse2neon.h b/sse2neon.h index 0db48053..bd821a55 100644 --- a/sse2neon.h +++ b/sse2neon.h @@ -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