Ignore:
Timestamp:
Feb 7, 2019, 8:36:33 AM (5 years ago)
Author:
coas-nagasima
Message:

wolfsslを3.15.7にバージョンアップ

File:
1 edited

Legend:

Unmodified
Added
Removed
  • asp3_tinet_ecnl_rx/trunk/wolfssl-3.12.2/wolfssl/wolfcrypt/settings.h

    r337 r372  
    7777/* #define WOLFSSL_LSR */
    7878
     79/* Uncomment next line if building for Freescale Classic MQX version 4.0 */
     80/* #define FREESCALE_MQX_4_0 */
     81
    7982/* Uncomment next line if building for Freescale Classic MQX/RTCS/MFS */
    8083/* #define FREESCALE_MQX */
     
    8689/* #define FREESCALE_KSDK_BM */
    8790
    88 /* Uncomment next line if building for Freescale KSDK FreeRTOS (old name FREESCALE_FREE_RTOS) */
     91/* Uncomment next line if building for Freescale KSDK FreeRTOS, */
     92/* (old name FREESCALE_FREE_RTOS) */
    8993/* #define FREESCALE_KSDK_FREERTOS */
    9094
     
    9498/* Uncomment next line if using STM32F4 */
    9599/* #define WOLFSSL_STM32F4 */
     100
     101/* Uncomment next line if using STM32FL */
     102/* #define WOLFSSL_STM32FL */
    96103
    97104/* Uncomment next line if using STM32F7 */
     
    162169/* Uncomment next line if building for using XILINX */
    163170/* #define WOLFSSL_XILINX */
     171
     172/* Uncomment next line if building for Nucleus 1.2 */
     173/* #define WOLFSSL_NUCLEUS_1_2 */
     174
     175/* Uncomment next line if building for using Apache mynewt */
     176/* #define WOLFSSL_APACHE_MYNEWT */
     177
     178/* Uncomment next line if building for using ESP-IDF */
     179/* #define WOLFSSL_ESPIDF */
     180
     181/* Uncomment next line if using Espressif ESP32-WROOM-32 */
     182/* #define WOLFSSL_ESPWROOM32 */
    164183
    165184#include <wolfssl/wolfcrypt/visibility.h>
     
    203222    #include <nx_api.h>
    204223#endif
     224
     225#if defined(WOLFSSL_ESPIDF)
     226    #define FREERTOS
     227    #define WOLFSSL_LWIP
     228    #define NO_WRITEV
     229    #define SIZEOF_LONG_LONG 8
     230    #define NO_WOLFSSL_DIR
     231    #define WOLFSSL_NO_CURRDIR
     232
     233    #define TFM_TIMING_RESISTANT
     234    #define ECC_TIMING_RESISTANT
     235    #define WC_RSA_BLINDING
     236#if !defined(WOLFSSL_USER_SETTINGS)
     237    #define HAVE_ECC
     238#endif /* !WOLFSSL_USER_SETTINGS */
     239#endif /* WOLFSSL_ESPIDF */
    205240
    206241#if defined(HAVE_LWIP_NATIVE) /* using LwIP native TCP socket */
     
    210245    #define WOLFSSL_USER_IO
    211246    #define NO_FILESYSTEM
     247#endif
     248
     249#if defined(WOLFSSL_CONTIKI)
     250    #include <contiki.h>
     251    #define WOLFSSL_UIP
     252    #define NO_WOLFSSL_MEMORY
     253    #define NO_WRITEV
     254    #define SINGLE_THREADED
     255    #define WOLFSSL_USER_IO
     256    #define NO_FILESYSTEM
     257    #define CUSTOM_RAND_TYPE uint16_t
     258    #define CUSTOM_RAND_GENERATE random_rand
     259    static inline unsigned int LowResTimer(void)
     260    {
     261        return clock_seconds();
     262    }
    212263#endif
    213264
     
    241292
    242293#ifdef WOLFSSL_MICROCHIP_PIC32MZ
     294    #ifndef NO_PIC32MZ_CRYPT
    243295    #define WOLFSSL_PIC32MZ_CRYPT
     296    #endif
     297    #ifndef NO_PIC32MZ_RNG
    244298    #define WOLFSSL_PIC32MZ_RNG
     299    #endif
     300    #ifndef NO_PIC32MZ_HASH
    245301    #define WOLFSSL_PIC32MZ_HASH
     302#endif
    246303#endif
    247304
     
    342399        #define TFM_NO_ASM
    343400    #endif
    344     #define WOLFSSL_PTHREADS
     401    /* For VxWorks pthreads wrappers for mutexes uncomment the next line. */
     402    /* #define WOLFSSL_PTHREADS */
    345403    #define WOLFSSL_HAVE_MIN
    346404    #define WOLFSSL_HAVE_MAX
     
    441499    #define NO_FILESYSTEM
    442500    #define USE_CERT_BUFFERS_2048
     501#endif
     502
     503#ifdef WOLFSSL_CHIBIOS
     504    /* ChibiOS definitions. This file is distributed with chibiOS. */
     505    #include "wolfssl_chibios.h"
     506#endif
     507
     508#ifdef WOLFSSL_PB
     509    /* PB is using older 1.2 version of Nucleus */
     510    #undef WOLFSSL_NUCLEUS
     511    #define WOLFSSL_NUCLEUS_1_2
     512#endif
     513
     514#ifdef WOLFSSL_NUCLEUS_1_2
     515    #define NO_WRITEV
     516    #define NO_WOLFSSL_DIR
     517
     518    #if !defined(NO_ASN_TIME) && !defined(USER_TIME)
     519        #error User must define XTIME, see manual
     520    #endif
     521
     522    #if !defined(XMALLOC_OVERRIDE) && !defined(XMALLOC_USER)
     523        extern void* nucleus_malloc(unsigned long size, void* heap, int type);
     524        extern void* nucleus_realloc(void* ptr, unsigned long size, void* heap,
     525                                     int type);
     526        extern void  nucleus_free(void* ptr, void* heap, int type);
     527
     528        #define XMALLOC(s, h, type)  nucleus_malloc((s), (h), (type))
     529        #define XREALLOC(p, n, h, t) nucleus_realloc((p), (n), (h), (t))
     530        #define XFREE(p, h, type)    nucleus_free((p), (h), (type))
     531    #endif
    443532#endif
    444533
     
    499588
    500589    /* static char* gets(char *buff); */
    501     static char* fgets(char *buff, int sz, FILE *fp) {
     590    static char* fgets(char *buff, int sz, XFILE fp) {
    502591        char * p = buff;
    503592        *p = '\0';
     
    539628
    540629    /* FreeRTOS pvPortRealloc() only in AVR32_UC3 port */
    541     #if !defined(XMALLOC_USER) && !defined(NO_WOLFSSL_MEMORY)
     630    #if !defined(XMALLOC_USER) && !defined(NO_WOLFSSL_MEMORY) && \
     631        !defined(WOLFSSL_STATIC_MEMORY)
    542632        #define XMALLOC(s, h, type)  pvPortMalloc((s))
    543633        #define XFREE(p, h, type)    vPortFree((p))
    544634    #endif
    545 
     635    #if defined(HAVE_ED25519) || defined(WOLFSSL_ESPIDF)
     636        #define XREALLOC(p, n, h, t) wolfSSL_Realloc((p), (n))
     637    #endif
    546638    #ifndef NO_WRITEV
    547639        #define NO_WRITEV
     
    570662
    571663#ifdef FREERTOS_TCP
    572 
    573 #if !defined(NO_WOLFSSL_MEMORY) && !defined(XMALLOC_USER)
     664    #if !defined(NO_WOLFSSL_MEMORY) && !defined(XMALLOC_USER) && \
     665        !defined(WOLFSSL_STATIC_MEMORY)
    574666#define XMALLOC(s, h, type)  pvPortMalloc((s))
    575667#define XFREE(p, h, type)    vPortFree((p))
     
    583675#define TFM_TIMING_RESISTANT
    584676#define NO_MAIN_DRIVER
    585 
    586677#endif
    587678
     
    592683    #define USE_FAST_MATH
    593684    #define TFM_TIMING_RESISTANT
     685    #define ECC_TIMING_RESISTANT
     686    #define WC_RSA_BLINDING
    594687    #define NO_DEV_RANDOM
    595688    #define NO_FILESYSTEM
     
    599692    #define HAVE_ECC
    600693    #define HAVE_ALPN
     694    #define USE_WOLF_STRTOK /* use with HAVE_ALPN */
    601695    #define HAVE_TLS_EXTENSIONS
    602696    #define HAVE_AESGCM
     
    702796#endif
    703797
     798#ifdef FREESCALE_MQX_4_0
     799    /* use normal Freescale MQX port, but with minor changes for 4.0 */
     800    #define FREESCALE_MQX
     801#endif
     802
    704803#ifdef FREESCALE_MQX
    705804    #define FREESCALE_COMMON
     
    718817    #endif
    719818
     819    #if !defined(XMALLOC_OVERRIDE) && !defined(XMALLOC_USER)
    720820    #define XMALLOC_OVERRIDE
    721821    #define XMALLOC(s, h, t)    (void *)_mem_alloc_system((s))
    722822    #define XFREE(p, h, t)      {void* xp = (p); if ((xp)) _mem_free((xp));}
    723823    /* Note: MQX has no realloc, using fastmath above */
     824#endif
    724825#endif
    725826
     
    9481049                    #define HAVE_ECC384
    9491050                #endif
    950 
    951                 /* enable features */
    952                 #undef  HAVE_CURVE25519
    953                 #define HAVE_CURVE25519
    954                 #undef  HAVE_ED25519
    955                 #define HAVE_ED25519
    956                 #undef  WOLFSSL_SHA512
    957                 #define WOLFSSL_SHA512
    9581051            #endif
    9591052        #endif
     
    9791072
    9801073#if defined(WOLFSSL_STM32F2) || defined(WOLFSSL_STM32F4) || \
    981     defined(WOLFSSL_STM32F7)
     1074    defined(WOLFSSL_STM32F7) || defined(WOLFSSL_STM32F1) || \
     1075    defined(WOLFSSL_STM32L4)
    9821076
    9831077    #define SIZEOF_LONG_LONG 8
     
    9861080    #undef  NO_RABBIT
    9871081    #define NO_RABBIT
    988     #undef  NO_64BIT
    989     #define NO_64BIT
    9901082    #ifndef NO_STM32_RNG
    9911083        #undef  STM32_RNG
    9921084        #define STM32_RNG
     1085        #ifdef WOLFSSL_STM32F427_RNG
     1086            #include "stm32f427xx.h"
     1087        #endif
    9931088    #endif
    9941089    #ifndef NO_STM32_CRYPTO
    9951090        #undef  STM32_CRYPTO
    9961091        #define STM32_CRYPTO
     1092
     1093        #ifdef WOLFSSL_STM32L4
     1094            #define NO_AES_192 /* hardware does not support 192-bit */
     1095        #endif
    9971096    #endif
    9981097    #ifndef NO_STM32_HASH
     
    10071106        #if defined(WOLFSSL_STM32F2)
    10081107            #include "stm32f2xx_hal.h"
     1108        #elif defined(WOLFSSL_STM32L4)
     1109            #include "stm32l4xx_hal.h"
    10091110        #elif defined(WOLFSSL_STM32F4)
    10101111            #include "stm32f4xx_hal.h"
    10111112        #elif defined(WOLFSSL_STM32F7)
    10121113            #include "stm32f7xx_hal.h"
     1114        #elif defined(WOLFSSL_STM32F1)
     1115            #include "stm32f1xx_hal.h"
    10131116        #endif
    10141117
     
    10331136                #include "stm32f4xx_hash.h"
    10341137            #endif
     1138        #elif defined(WOLFSSL_STM32L4)
     1139            #include "stm32l4xx.h"
     1140            #ifdef STM32_CRYPTO
     1141                #include "stm32l4xx_cryp.h"
     1142            #endif
     1143            #ifdef STM32_HASH
     1144                #include "stm32l4xx_hash.h"
     1145            #endif
    10351146        #elif defined(WOLFSSL_STM32F7)
    10361147            #include "stm32f7xx.h"
     1148        #elif defined(WOLFSSL_STM32F1)
     1149            #include "stm32f1xx.h"
    10371150        #endif
    10381151    #endif /* WOLFSSL_STM32_CUBEMX */
    1039 #endif /* WOLFSSL_STM32F2 || WOLFSSL_STM32F4 || WOLFSSL_STM32F7 */
     1152#endif /* WOLFSSL_STM32F2 || WOLFSSL_STM32F4 || WOLFSSL_STM32L4 || WOLFSSL_STM32F7 */
    10401153
    10411154#ifdef MICRIUM
     
    10741187        #define CUSTOM_RAND_GENERATE Math_Rand
    10751188    #endif
    1076 
    1077     #define WOLFSSL_TYPES
    1078     typedef CPU_INT08U byte;
    1079     typedef CPU_INT16U word16;
    1080     typedef CPU_INT32U word32;
    1081 
    10821189    #define STRING_USER
    10831190    #define XSTRLEN(pstr) ((CPU_SIZE_T)Str_Len((CPU_CHAR *)(pstr)))
     
    11761283#endif /*(WOLFSSL_XILINX_CRYPT)*/
    11771284
     1285#if defined(WOLFSSL_APACHE_MYNEWT)
     1286    #include "os/os_malloc.h"
     1287    #if !defined(WOLFSSL_LWIP)
     1288        #include <mn_socket/mn_socket.h>
     1289    #endif
     1290
     1291    #if !defined(SIZEOF_LONG)
     1292        #define SIZEOF_LONG 4
     1293    #endif
     1294    #if !defined(SIZEOF_LONG_LONG)
     1295        #define SIZEOF_LONG_LONG 8
     1296    #endif
     1297    #if (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)
     1298        #define BIG_ENDIAN_ORDER
     1299    #else
     1300        #undef  BIG_ENDIAN_ORDER
     1301        #define LITTLE_ENDIAN_ORDER
     1302    #endif
     1303    #define NO_WRITEV
     1304    #define WOLFSSL_USER_IO
     1305    #define SINGLE_THREADED
     1306    #define NO_DEV_RANDOM
     1307    #define NO_DH
     1308    #define NO_WOLFSSL_DIR
     1309    #define NO_ERROR_STRINGS
     1310    #define HAVE_ECC
     1311    #define NO_SESSION_CACHE
     1312    #define NO_ERROR_STRINGS
     1313    #define XMALLOC_USER
     1314    #define XMALLOC(sz, heap, type)     os_malloc(sz)
     1315    #define XREALLOC(p, sz, heap, type) os_realloc(p, sz)
     1316    #define XFREE(p, heap, type)        os_free(p)
     1317
     1318#endif /*(WOLFSSL_APACHE_MYNEWT)*/
     1319
     1320#ifdef WOLFSSL_IMX6
     1321    #ifndef SIZEOF_LONG_LONG
     1322        #define SIZEOF_LONG_LONG 8
     1323    #endif
     1324#endif
     1325
     1326/* if defined turn on all CAAM support */
     1327#ifdef WOLFSSL_IMX6_CAAM
     1328    #undef  WOLFSSL_IMX6_CAAM_RNG
     1329    #define WOLFSSL_IMX6_CAAM_RNG
     1330
     1331    #undef  WOLFSSL_IMX6_CAAM_BLOB
     1332    #define WOLFSSL_IMX6_CAAM_BLOB
     1333
     1334#if defined(HAVE_AESGCM) || defined(WOLFSSL_AES_XTS)
     1335    /* large performance gain with HAVE_AES_ECB defined */
     1336    #undef HAVE_AES_ECB
     1337    #define HAVE_AES_ECB
     1338#endif
     1339#endif
     1340
    11781341#if !defined(XMALLOC_USER) && !defined(MICRIUM_MALLOC) && \
    11791342    !defined(WOLFSSL_LEANPSK) && !defined(NO_WOLFSSL_MEMORY) && \
     
    12061369#ifdef WOLFSSL_SGX
    12071370    #ifdef _MSC_VER
    1208         #define WOLFCRYPT_ONLY
    12091371        #define NO_RC4
     1372        #ifndef HAVE_FIPS
     1373            #define WOLFCRYPT_ONLY
    12101374        #define NO_DES3
    12111375        #define NO_SHA
    12121376        #define NO_MD5
    12131377    #else
     1378        #define TFM_TIMING_RESISTANT
     1379            #define NO_WOLFSSL_DIR
     1380            #define NO_WRITEV
     1381            #define NO_MAIN_DRIVER
     1382            #define WOLFSSL_LOG_PRINTF
     1383            #define WOLFSSL_DH_CONST
     1384        #endif
     1385    #else
    12141386        #define HAVE_ECC
    1215         #define ECC_TIMING_RESISTANT
    1216         #define TFM_TIMING_RESISTANT
    1217         #define NO_FILESYSTEM
    12181387        #define NO_WRITEV
    12191388        #define NO_MAIN_DRIVER
     
    12221391        #define WOLFSSL_DH_CONST
    12231392    #endif /* _MSC_VER */
    1224     #ifndef NO_RSA
     1393    #if !defined(HAVE_FIPS) && !defined(NO_RSA)
    12251394        #define WC_RSA_BLINDING
    12261395    #endif
     1396
     1397    #define NO_FILESYSTEM
     1398    #define ECC_TIMING_RESISTANT
     1399    #define TFM_TIMING_RESISTANT
    12271400    #define SINGLE_THREADED
    12281401    #define NO_ASN_TIME /* can not use headers such as windows.h */
     
    12841457 * all curves are on by default for now */
    12851458#ifndef ECC_USER_CURVES
    1286     #ifndef HAVE_ALL_CURVES
     1459    #if !defined(WOLFSSL_SP_MATH) && !defined(HAVE_ALL_CURVES)
    12871460        #define HAVE_ALL_CURVES
    12881461    #endif
     
    13001473        #define HAVE_ECC_VERIFY
    13011474    #endif
     1475    #ifndef NO_ECC_CHECK_KEY
     1476        #undef HAVE_ECC_CHECK_KEY
     1477        #define HAVE_ECC_CHECK_KEY
     1478    #endif
    13021479    #ifndef NO_ECC_DHE
    13031480        #undef HAVE_ECC_DHE
     
    13591536        #define AES_MAX_KEY_SIZE    256
    13601537    #endif
     1538
     1539    #ifndef NO_AES_128
     1540        #undef  WOLFSSL_AES_128
     1541        #define WOLFSSL_AES_128
     1542    #endif
     1543    #if !defined(NO_AES_192) && AES_MAX_KEY_SIZE >= 192
     1544        #undef  WOLFSSL_AES_192
     1545        #define WOLFSSL_AES_192
     1546    #endif
     1547    #if !defined(NO_AES_256) && AES_MAX_KEY_SIZE >= 256
     1548        #undef  WOLFSSL_AES_256
     1549        #define WOLFSSL_AES_256
     1550    #endif
     1551    #if !defined(WOLFSSL_AES_128) && defined(HAVE_ECC_ENCRYPT)
     1552        #warning HAVE_ECC_ENCRYPT uses AES 128 bit keys
     1553     #endif
     1554
    13611555    #ifndef NO_AES_DECRYPT
    13621556        #undef  HAVE_AES_DECRYPT
     
    13661560        #undef  HAVE_AES_CBC
    13671561        #define HAVE_AES_CBC
    1368     #else
    1369         #ifndef WOLFCRYPT_ONLY
    1370             #error "AES CBC is required for TLS and can only be disabled for WOLFCRYPT_ONLY builds"
    1371         #endif
    13721562    #endif
    13731563    #ifdef WOLFSSL_AES_XTS
     
    13771567        #endif
    13781568    #endif
     1569    #ifdef WOLFSSL_AES_CFB
     1570        /* AES-CFB makes calls to AES direct functions */
     1571        #ifndef WOLFSSL_AES_DIRECT
     1572        #define WOLFSSL_AES_DIRECT
     1573        #endif
     1574    #endif
     1575#endif
     1576
     1577#if (defined(WOLFSSL_TLS13) && defined(WOLFSSL_NO_TLS12)) || \
     1578    (!defined(HAVE_AES_CBC) && defined(NO_DES3) && defined(NO_RC4) && \
     1579     !defined(HAVE_CAMELLIA) && !defined(HAVE_IDEA) && \
     1580     !defined(HAVE_NULL_CIPHER) && !defined(HAVE_HC128))
     1581    #define WOLFSSL_AEAD_ONLY
    13791582#endif
    13801583
     
    14451648
    14461649    #ifdef WOLFSSL_ASYNC_CRYPT_TEST
    1447         #define WC_ASYNC_DEV_SIZE 320+24
     1650        #define WC_ASYNC_DEV_SIZE 328+24
    14481651    #else
    1449         #define WC_ASYNC_DEV_SIZE 320
     1652        #define WC_ASYNC_DEV_SIZE 328
    14501653    #endif
    14511654
     
    14911694
    14921695#ifdef HAVE_PKCS7
     1696    #if defined(NO_AES) && defined(NO_DES3)
     1697        #error PKCS7 needs either AES or 3DES enabled, please enable one
     1698    #endif
    14931699    #ifndef HAVE_AES_KEYWRAP
    14941700        #error PKCS7 requires AES key wrap please define HAVE_AES_KEYWRAP
    14951701    #endif
    1496     #ifndef HAVE_X963_KDF
     1702    #if defined(HAVE_ECC) && !defined(HAVE_X963_KDF)
    14971703        #error PKCS7 requires X963 KDF please define HAVE_X963_KDF
    14981704    #endif
     
    15171723#endif /* WOLFSSL_MYSQL_COMPATIBLE */
    15181724
    1519 #if defined(WOLFSSL_NGINX) || defined(WOLFSSL_HAPROXY)
     1725#if defined(OPENSSL_ALL) || defined(WOLFSSL_NGINX) || defined(WOLFSSL_HAPROXY)
    15201726    #define SSL_OP_NO_COMPRESSION    SSL_OP_NO_COMPRESSION
    15211727    #define OPENSSL_NO_ENGINE
     
    15571763    #if (defined(USE_FAST_MATH) && !defined(TFM_TIMING_RESISTANT)) || \
    15581764        (defined(HAVE_ECC) && !defined(ECC_TIMING_RESISTANT)) || \
    1559         (!defined(NO_RSA) && !defined(WC_RSA_BLINDING) && !defined(HAVE_FIPS))
     1765        (!defined(NO_RSA) && !defined(WC_RSA_BLINDING) && !defined(HAVE_FIPS) && \
     1766            !defined(WC_NO_RNG))
    15601767
    15611768        #ifndef _MSC_VER
     
    15671774#endif
    15681775
     1776#if defined(NO_OLD_WC_NAMES) || defined(OPENSSL_EXTRA)
     1777    /* added to have compatibility with SHA256() */
     1778    #if !defined(NO_OLD_SHA_NAMES) && !defined(HAVE_FIPS)
     1779        #define NO_OLD_SHA_NAMES
     1780    #endif
     1781#endif
     1782
     1783/* switch for compatibility layer functionality. Has subparts i.e. BIO/X509
     1784 * When opensslextra is enabled all subparts should be turned on. */
     1785#ifdef OPENSSL_EXTRA
     1786    #undef  OPENSSL_EXTRA_X509_SMALL
     1787    #define OPENSSL_EXTRA_X509_SMALL
     1788#endif /* OPENSSL_EXTRA */
     1789
     1790/* support for converting DER to PEM */
     1791#if defined(WOLFSSL_KEY_GEN) || defined(WOLFSSL_CERT_GEN) || \
     1792        defined(OPENSSL_EXTRA)
     1793    #undef  WOLFSSL_DER_TO_PEM
     1794    #define WOLFSSL_DER_TO_PEM
     1795#endif
     1796
     1797/* keep backwards compatibility enabling encrypted private key */
     1798#ifndef WOLFSSL_ENCRYPTED_KEYS
     1799    #if defined(OPENSSL_EXTRA) || defined(OPENSSL_EXTRA_X509_SMALL) || \
     1800        defined(HAVE_WEBSERVER)
     1801        #define WOLFSSL_ENCRYPTED_KEYS
     1802    #endif
     1803#endif
     1804
     1805/* support for disabling PEM to DER */
     1806#if !defined(WOLFSSL_NO_PEM)
     1807    #undef  WOLFSSL_PEM_TO_DER
     1808    #define WOLFSSL_PEM_TO_DER
     1809#endif
     1810
     1811/* Parts of the openssl compatibility layer require peer certs */
     1812#if defined(OPENSSL_ALL) || defined(WOLFSSL_NGINX) || defined(WOLFSSL_HAPROXY)
     1813    #undef  KEEP_PEER_CERT
     1814    #define KEEP_PEER_CERT
     1815#endif
     1816
     1817/* RAW hash function APIs are not implemented with ARMv8 hardware acceleration*/
     1818#ifdef WOLFSSL_ARMASM
     1819    #undef  WOLFSSL_NO_HASH_RAW
     1820    #define WOLFSSL_NO_HASH_RAW
     1821#endif
     1822
     1823#if !defined(WOLFSSL_SHA384) && !defined(WOLFSSL_SHA512) && defined(NO_AES) && \
     1824                                                          !defined(WOLFSSL_SHA3)
     1825    #undef  WOLFSSL_NO_WORD64_OPS
     1826    #define WOLFSSL_NO_WORD64_OPS
     1827#endif
     1828
     1829#if defined(NO_AES) && defined(NO_DES3) && !defined(HAVE_CAMELLIA) && \
     1830                                     defined(NO_PWDBASED) && !defined(HAVE_IDEA)
     1831    #undef  WOLFSSL_NO_XOR_OPS
     1832    #define WOLFSSL_NO_XOR_OPS
     1833#endif
     1834
     1835#if defined(NO_ASN) && defined(WOLFCRYPT_ONLY)
     1836    #undef  WOLFSSL_NO_INT_ENCODE
     1837    #define WOLFSSL_NO_INT_ENCODE
     1838    #undef  WOLFSSL_NO_INT_DECODE
     1839    #define WOLFSSL_NO_INT_DECODE
     1840#endif
     1841
     1842#if defined(WOLFCRYPT_ONLY) && defined(WOLFSSL_RSA_VERIFY_ONLY) && \
     1843    defined(WC_NO_RSA_OAEP)
     1844    #undef  WOLFSSL_NO_CT_OPS
     1845    #define WOLFSSL_NO_CT_OPS
     1846#endif
     1847
     1848#if defined(WOLFCRYPT_ONLY) && defined(NO_AES) && !defined(HAVE_CURVE25519) && \
     1849                                   defined(WC_NO_RNG) && defined(WC_NO_RSA_OAEP)
     1850    #undef  WOLFSSL_NO_CONST_CMP
     1851    #define WOLFSSL_NO_CONST_CMP
     1852#endif
     1853
     1854#if defined(WOLFCRYPT_ONLY) && defined(NO_AES) && !defined(WOLFSSL_SHA384) && \
     1855    !defined(WOLFSSL_SHA512) && defined(WC_NO_RNG) && \
     1856                    defined(WOLFSSL_SP_MATH) && defined(WOLFSSL_RSA_PUBLIC_ONLY)
     1857    #undef  WOLFSSL_NO_FORCE_ZERO
     1858    #define WOLFSSL_NO_FORCE_ZERO
     1859#endif
     1860
    15691861#ifdef __cplusplus
    15701862    }   /* extern "C" */
Note: See TracChangeset for help on using the changeset viewer.