Skip to content

Commit

Permalink
aesni: make AESNI only operate on X86 and X86_64
Browse files Browse the repository at this point in the history
Signed-off-by: Pengyu Lv <[email protected]>
  • Loading branch information
lpy4105 committed Sep 13, 2023
1 parent 5a09159 commit dc5a88b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/mbedtls/aesni.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@
#define MBEDTLS_HAVE_X86
#endif

#if defined(MBEDTLS_AESNI_C)
#if defined(MBEDTLS_AESNI_C) && \
(defined(MBEDTLS_HAVE_X86_64) || defined(MBEDTLS_HAVE_X86))

/* Can we do AESNI with intrinsics?
* (Only implemented with certain compilers, only for certain targets.)
Expand Down

0 comments on commit dc5a88b

Please sign in to comment.