mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-26 19:57:13 +09:00
Manually define __ARM_FEATURE_AES (necessary for CheriOS)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user