Skip to content

Commit

Permalink
Fix MSVC portability
Browse files Browse the repository at this point in the history
MSVC doesn't have _mm_storeu_si64. Fortunately it isn't really needed here.

Signed-off-by: Gilles Peskine <[email protected]>
  • Loading branch information
gilles-peskine-arm authored and tom-cosgrove-arm committed Mar 17, 2023
1 parent d4a2393 commit 2e8d8d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/aesni.c
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ static void aesni_set_rk_192(__m128i *state0, __m128i *state1, __m128i xword,
* an array of 24-byte elements. Since 24 is not a multiple of 16,
* rk is not necessarily aligned so just `*rk = *state0` doesn't work. */
memcpy(rk, state0, 16);
_mm_storeu_si64(rk + 16, *state1);
memcpy(rk + 16, state1, 8);
}

static void aesni_setkey_enc_192(unsigned char *rk,
Expand Down

0 comments on commit 2e8d8d1

Please sign in to comment.