1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-19 10:05:05 -07:00

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

View File

@ -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;

View File

@ -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))

View File

@ -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