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:
parent
4dc02ce841
commit
a3f200abe6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user