forked from wolfSSL/wolfssl
wolfcrypt/src/{aes.c,blake2b.c,siphash.c}: fix W64LIT() arguments to not have improper 'U' suffix;
wolfssl/wolfcrypt/types.h: add 'U' suffix to W64LIT() macro defs, and add SW64LIT() macro defs (not yet used anywhere); wolfcrypt/src/asn.c: add !WOLFSSL_ECC_CURVE_STATIC gate around DataToHexStringAlloc() to resolve -Wunused; wolfcrypt/src/ecc.c: guard against zero-valued "len" arg to wc_ecc_get_curve_id_from_oid(); wolfcrypt/src/wc_port.c: fix several argument implicit sign changes in USE_WINDOWS_API paths; wolfssl/wolfcrypt/ecc.h: remove const attribute from inline buffers in WOLFSSL_ECC_CURVE_STATIC struct ecc_set_type.
This commit is contained in:
@@ -177,37 +177,45 @@ decouple library dependencies with standard string, memory and so on.
|
||||
#if defined(_MSC_VER) || defined(__BCPLUSPLUS__)
|
||||
#define WORD64_AVAILABLE
|
||||
#define W64LIT(x) x##ui64
|
||||
#define SW64LIT(x) x##i64
|
||||
typedef __int64 sword64;
|
||||
typedef unsigned __int64 word64;
|
||||
#elif defined(__EMSCRIPTEN__)
|
||||
#define WORD64_AVAILABLE
|
||||
#define W64LIT(x) x##ull
|
||||
#define SW64LIT(x) x##ll
|
||||
typedef long long sword64;
|
||||
typedef unsigned long long word64;
|
||||
#elif defined(SIZEOF_LONG) && SIZEOF_LONG == 8
|
||||
#define WORD64_AVAILABLE
|
||||
#ifdef WOLF_C89
|
||||
#define W64LIT(x) x##L
|
||||
#define W64LIT(x) x##UL
|
||||
#define SW64LIT(x) x##L
|
||||
#else
|
||||
#define W64LIT(x) x##LL
|
||||
#define W64LIT(x) x##ULL
|
||||
#define SW64LIT(x) x##LL
|
||||
#endif
|
||||
typedef long sword64;
|
||||
typedef unsigned long word64;
|
||||
#elif defined(SIZEOF_LONG_LONG) && SIZEOF_LONG_LONG == 8
|
||||
#define WORD64_AVAILABLE
|
||||
#ifdef WOLF_C89
|
||||
#define W64LIT(x) x##L
|
||||
#define W64LIT(x) x##UL
|
||||
#define SW64LIT(x) x##L
|
||||
#else
|
||||
#define W64LIT(x) x##LL
|
||||
#define W64LIT(x) x##ULL
|
||||
#define SW64LIT(x) x##LL
|
||||
#endif
|
||||
typedef long long sword64;
|
||||
typedef unsigned long long word64;
|
||||
#elif defined(__SIZEOF_LONG_LONG__) && __SIZEOF_LONG_LONG__ == 8
|
||||
#define WORD64_AVAILABLE
|
||||
#ifdef WOLF_C89
|
||||
#define W64LIT(x) x##L
|
||||
#define W64LIT(x) x##UL
|
||||
#define SW64LIT(x) x##L
|
||||
#else
|
||||
#define W64LIT(x) x##LL
|
||||
#define W64LIT(x) x##ULL
|
||||
#define SW64LIT(x) x##LL
|
||||
#endif
|
||||
typedef long long sword64;
|
||||
typedef unsigned long long word64;
|
||||
|
Reference in New Issue
Block a user