mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 08:37:13 +09:00
Don't try ARM Crypto implementations on big-endian yet
This commit is contained in:
@@ -43,7 +43,7 @@ crypto_aead_aegis128l_keygen(unsigned char k[crypto_aead_aegis128l_KEYBYTES])
|
||||
}
|
||||
|
||||
#if !((defined(HAVE_TMMINTRIN_H) && defined(HAVE_WMMINTRIN_H)) || \
|
||||
defined(HAVE_ARMCRYPTO))
|
||||
(defined(HAVE_ARMCRYPTO) && defined(NATIVE_LITTLE_ENDIAN)))
|
||||
|
||||
#ifndef ENOSYS
|
||||
# define ENOSYS ENXIO
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
#include "private/common.h"
|
||||
|
||||
#ifdef HAVE_ARMCRYPTO
|
||||
#if defined(HAVE_ARMCRYPTO) && defined(NATIVE_LITTLE_ENDIAN)
|
||||
|
||||
# include <arm_neon.h>
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ crypto_aead_aegis256_keygen(unsigned char k[crypto_aead_aegis256_KEYBYTES])
|
||||
}
|
||||
|
||||
#if !((defined(HAVE_TMMINTRIN_H) && defined(HAVE_WMMINTRIN_H)) || \
|
||||
defined(HAVE_ARMCRYPTO))
|
||||
(defined(HAVE_ARMCRYPTO) && defined(NATIVE_LITTLE_ENDIAN)))
|
||||
|
||||
#ifndef ENOSYS
|
||||
# define ENOSYS ENXIO
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
#include "private/common.h"
|
||||
|
||||
#ifdef HAVE_ARMCRYPTO
|
||||
#if defined(HAVE_ARMCRYPTO) && defined(NATIVE_LITTLE_ENDIAN)
|
||||
|
||||
# include <arm_neon.h>
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ crypto_aead_aes256gcm_keygen(unsigned char k[crypto_aead_aes256gcm_KEYBYTES])
|
||||
randombytes_buf(k, crypto_aead_aes256gcm_KEYBYTES);
|
||||
}
|
||||
|
||||
#if !((defined(HAVE_ARMCRYPTO) && defined(__GNUC__)) || \
|
||||
#if !((defined(HAVE_ARMCRYPTO) && defined(__GNUC__) && defined(NATIVE_LITTLE_ENDIAN)) || \
|
||||
(defined(HAVE_TMMINTRIN_H) && defined(HAVE_WMMINTRIN_H)))
|
||||
|
||||
#ifndef ENOSYS
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
#include "runtime.h"
|
||||
#include "utils.h"
|
||||
|
||||
#if defined(HAVE_ARMCRYPTO) && defined(__GNUC__)
|
||||
#if defined(HAVE_ARMCRYPTO) && defined(__GNUC__) && defined(NATIVE_LITTLE_ENDIAN)
|
||||
|
||||
#include <arm_neon.h>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user