mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-23 20:15:19 -07:00
Define ENOSYS where it is useful
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
parent
285b34141d
commit
4520c080cc
@ -16,10 +16,6 @@
|
|||||||
#include "private/common.h"
|
#include "private/common.h"
|
||||||
#include "private/sse2_64_32.h"
|
#include "private/sse2_64_32.h"
|
||||||
|
|
||||||
#ifndef ENOSYS
|
|
||||||
# define ENOSYS ENXIO
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(HAVE_TMMINTRIN_H) && defined(HAVE_WMMINTRIN_H)
|
#if defined(HAVE_TMMINTRIN_H) && defined(HAVE_WMMINTRIN_H)
|
||||||
|
|
||||||
# ifdef __GNUC__
|
# ifdef __GNUC__
|
||||||
@ -315,6 +311,10 @@ crypto_aead_aegis256_is_available(void)
|
|||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
#ifndef ENOSYS
|
||||||
|
# define ENOSYS ENXIO
|
||||||
|
#endif
|
||||||
|
|
||||||
int
|
int
|
||||||
crypto_aead_aegis256_encrypt_detached(unsigned char *c,
|
crypto_aead_aegis256_encrypt_detached(unsigned char *c,
|
||||||
unsigned char *mac,
|
unsigned char *mac,
|
||||||
|
@ -30,10 +30,6 @@
|
|||||||
#include <tmmintrin.h>
|
#include <tmmintrin.h>
|
||||||
#include <wmmintrin.h>
|
#include <wmmintrin.h>
|
||||||
|
|
||||||
#ifndef ENOSYS
|
|
||||||
# define ENOSYS ENXIO
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(__INTEL_COMPILER) || defined(_bswap64)
|
#if defined(__INTEL_COMPILER) || defined(_bswap64)
|
||||||
#elif defined(_MSC_VER)
|
#elif defined(_MSC_VER)
|
||||||
# define _bswap64(a) _byteswap_uint64(a)
|
# define _bswap64(a) _byteswap_uint64(a)
|
||||||
@ -919,6 +915,10 @@ crypto_aead_aes256gcm_is_available(void)
|
|||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
#ifndef ENOSYS
|
||||||
|
# define ENOSYS ENXIO
|
||||||
|
#endif
|
||||||
|
|
||||||
int
|
int
|
||||||
crypto_aead_aes256gcm_encrypt_detached(unsigned char *c,
|
crypto_aead_aes256gcm_encrypt_detached(unsigned char *c,
|
||||||
unsigned char *mac,
|
unsigned char *mac,
|
||||||
|
Loading…
Reference in New Issue
Block a user