Manually define __ARM_FEATURE_AES (necessary for CheriOS)

This commit is contained in:
Frank Denis
2023-08-23 22:18:11 +02:00
parent 4dc02ce841
commit a3f200abe6
3 changed files with 13 additions and 1 deletions
@@ -17,6 +17,10 @@
#if defined(HAVE_ARMCRYPTO) && defined(NATIVE_LITTLE_ENDIAN)
#ifndef __ARM_FEATURE_AES
#define __ARM_FEATURE_AES 1
#endif
#include <arm_neon.h>
typedef uint8x16_t aes_block_t;
@@ -17,7 +17,11 @@
#if defined(HAVE_ARMCRYPTO) && defined(NATIVE_LITTLE_ENDIAN)
# include <arm_neon.h>
#ifndef __ARM_FEATURE_AES
#define __ARM_FEATURE_AES 1
#endif
#include <arm_neon.h>
typedef uint8x16_t aes_block_t;
#define AES_BLOCK_XOR(A, B) veorq_u8((A), (B))
@@ -19,6 +19,10 @@
#define __vectorcall
#endif
#ifndef __ARM_FEATURE_AES
#define __ARM_FEATURE_AES 1
#endif
#include <arm_neon.h>
#define ABYTES crypto_aead_aes256gcm_ABYTES