- Timestamp:
- Feb 7, 2019, 8:36:33 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
asp3_tinet_ecnl_arm/trunk/wolfssl-3.12.2/wolfssl/wolfcrypt/settings.h
r352 r372 77 77 /* #define WOLFSSL_LSR */ 78 78 79 /* Uncomment next line if building for Freescale Classic MQX version 4.0 */ 80 /* #define FREESCALE_MQX_4_0 */ 81 79 82 /* Uncomment next line if building for Freescale Classic MQX/RTCS/MFS */ 80 83 /* #define FREESCALE_MQX */ … … 86 89 /* #define FREESCALE_KSDK_BM */ 87 90 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) */ 89 93 /* #define FREESCALE_KSDK_FREERTOS */ 90 94 … … 94 98 /* Uncomment next line if using STM32F4 */ 95 99 /* #define WOLFSSL_STM32F4 */ 100 101 /* Uncomment next line if using STM32FL */ 102 /* #define WOLFSSL_STM32FL */ 96 103 97 104 /* Uncomment next line if using STM32F7 */ … … 162 169 /* Uncomment next line if building for using XILINX */ 163 170 /* #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 */ 164 183 165 184 #include <wolfssl/wolfcrypt/visibility.h> … … 203 222 #include <nx_api.h> 204 223 #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 */ 205 240 206 241 #if defined(HAVE_LWIP_NATIVE) /* using LwIP native TCP socket */ … … 210 245 #define WOLFSSL_USER_IO 211 246 #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 } 212 263 #endif 213 264 … … 241 292 242 293 #ifdef WOLFSSL_MICROCHIP_PIC32MZ 294 #ifndef NO_PIC32MZ_CRYPT 243 295 #define WOLFSSL_PIC32MZ_CRYPT 296 #endif 297 #ifndef NO_PIC32MZ_RNG 244 298 #define WOLFSSL_PIC32MZ_RNG 299 #endif 300 #ifndef NO_PIC32MZ_HASH 245 301 #define WOLFSSL_PIC32MZ_HASH 302 #endif 246 303 #endif 247 304 … … 342 399 #define TFM_NO_ASM 343 400 #endif 344 #define WOLFSSL_PTHREADS 401 /* For VxWorks pthreads wrappers for mutexes uncomment the next line. */ 402 /* #define WOLFSSL_PTHREADS */ 345 403 #define WOLFSSL_HAVE_MIN 346 404 #define WOLFSSL_HAVE_MAX … … 441 499 #define NO_FILESYSTEM 442 500 #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 443 532 #endif 444 533 … … 499 588 500 589 /* 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) { 502 591 char * p = buff; 503 592 *p = '\0'; … … 539 628 540 629 /* 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) 542 632 #define XMALLOC(s, h, type) pvPortMalloc((s)) 543 633 #define XFREE(p, h, type) vPortFree((p)) 544 634 #endif 545 635 #if defined(HAVE_ED25519) || defined(WOLFSSL_ESPIDF) 636 #define XREALLOC(p, n, h, t) wolfSSL_Realloc((p), (n)) 637 #endif 546 638 #ifndef NO_WRITEV 547 639 #define NO_WRITEV … … 570 662 571 663 #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) 574 666 #define XMALLOC(s, h, type) pvPortMalloc((s)) 575 667 #define XFREE(p, h, type) vPortFree((p)) … … 583 675 #define TFM_TIMING_RESISTANT 584 676 #define NO_MAIN_DRIVER 585 586 677 #endif 587 678 … … 592 683 #define USE_FAST_MATH 593 684 #define TFM_TIMING_RESISTANT 685 #define ECC_TIMING_RESISTANT 686 #define WC_RSA_BLINDING 594 687 #define NO_DEV_RANDOM 595 688 #define NO_FILESYSTEM … … 599 692 #define HAVE_ECC 600 693 #define HAVE_ALPN 694 #define USE_WOLF_STRTOK /* use with HAVE_ALPN */ 601 695 #define HAVE_TLS_EXTENSIONS 602 696 #define HAVE_AESGCM … … 702 796 #endif 703 797 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 704 803 #ifdef FREESCALE_MQX 705 804 #define FREESCALE_COMMON … … 718 817 #endif 719 818 819 #if !defined(XMALLOC_OVERRIDE) && !defined(XMALLOC_USER) 720 820 #define XMALLOC_OVERRIDE 721 821 #define XMALLOC(s, h, t) (void *)_mem_alloc_system((s)) 722 822 #define XFREE(p, h, t) {void* xp = (p); if ((xp)) _mem_free((xp));} 723 823 /* Note: MQX has no realloc, using fastmath above */ 824 #endif 724 825 #endif 725 826 … … 948 1049 #define HAVE_ECC384 949 1050 #endif 950 951 /* enable features */952 #undef HAVE_CURVE25519953 #define HAVE_CURVE25519954 #undef HAVE_ED25519955 #define HAVE_ED25519956 #undef WOLFSSL_SHA512957 #define WOLFSSL_SHA512958 1051 #endif 959 1052 #endif … … 979 1072 980 1073 #if defined(WOLFSSL_STM32F2) || defined(WOLFSSL_STM32F4) || \ 981 defined(WOLFSSL_STM32F7) 1074 defined(WOLFSSL_STM32F7) || defined(WOLFSSL_STM32F1) || \ 1075 defined(WOLFSSL_STM32L4) 982 1076 983 1077 #define SIZEOF_LONG_LONG 8 … … 986 1080 #undef NO_RABBIT 987 1081 #define NO_RABBIT 988 #undef NO_64BIT989 #define NO_64BIT990 1082 #ifndef NO_STM32_RNG 991 1083 #undef STM32_RNG 992 1084 #define STM32_RNG 1085 #ifdef WOLFSSL_STM32F427_RNG 1086 #include "stm32f427xx.h" 1087 #endif 993 1088 #endif 994 1089 #ifndef NO_STM32_CRYPTO 995 1090 #undef STM32_CRYPTO 996 1091 #define STM32_CRYPTO 1092 1093 #ifdef WOLFSSL_STM32L4 1094 #define NO_AES_192 /* hardware does not support 192-bit */ 1095 #endif 997 1096 #endif 998 1097 #ifndef NO_STM32_HASH … … 1007 1106 #if defined(WOLFSSL_STM32F2) 1008 1107 #include "stm32f2xx_hal.h" 1108 #elif defined(WOLFSSL_STM32L4) 1109 #include "stm32l4xx_hal.h" 1009 1110 #elif defined(WOLFSSL_STM32F4) 1010 1111 #include "stm32f4xx_hal.h" 1011 1112 #elif defined(WOLFSSL_STM32F7) 1012 1113 #include "stm32f7xx_hal.h" 1114 #elif defined(WOLFSSL_STM32F1) 1115 #include "stm32f1xx_hal.h" 1013 1116 #endif 1014 1117 … … 1033 1136 #include "stm32f4xx_hash.h" 1034 1137 #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 1035 1146 #elif defined(WOLFSSL_STM32F7) 1036 1147 #include "stm32f7xx.h" 1148 #elif defined(WOLFSSL_STM32F1) 1149 #include "stm32f1xx.h" 1037 1150 #endif 1038 1151 #endif /* WOLFSSL_STM32_CUBEMX */ 1039 #endif /* WOLFSSL_STM32F2 || WOLFSSL_STM32F4 || WOLFSSL_STM32 F7 */1152 #endif /* WOLFSSL_STM32F2 || WOLFSSL_STM32F4 || WOLFSSL_STM32L4 || WOLFSSL_STM32F7 */ 1040 1153 1041 1154 #ifdef MICRIUM … … 1074 1187 #define CUSTOM_RAND_GENERATE Math_Rand 1075 1188 #endif 1076 1077 #define WOLFSSL_TYPES1078 typedef CPU_INT08U byte;1079 typedef CPU_INT16U word16;1080 typedef CPU_INT32U word32;1081 1082 1189 #define STRING_USER 1083 1190 #define XSTRLEN(pstr) ((CPU_SIZE_T)Str_Len((CPU_CHAR *)(pstr))) … … 1176 1283 #endif /*(WOLFSSL_XILINX_CRYPT)*/ 1177 1284 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 1178 1341 #if !defined(XMALLOC_USER) && !defined(MICRIUM_MALLOC) && \ 1179 1342 !defined(WOLFSSL_LEANPSK) && !defined(NO_WOLFSSL_MEMORY) && \ … … 1206 1369 #ifdef WOLFSSL_SGX 1207 1370 #ifdef _MSC_VER 1208 #define WOLFCRYPT_ONLY1209 1371 #define NO_RC4 1372 #ifndef HAVE_FIPS 1373 #define WOLFCRYPT_ONLY 1210 1374 #define NO_DES3 1211 1375 #define NO_SHA 1212 1376 #define NO_MD5 1213 1377 #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 1214 1386 #define HAVE_ECC 1215 #define ECC_TIMING_RESISTANT1216 #define TFM_TIMING_RESISTANT1217 #define NO_FILESYSTEM1218 1387 #define NO_WRITEV 1219 1388 #define NO_MAIN_DRIVER … … 1222 1391 #define WOLFSSL_DH_CONST 1223 1392 #endif /* _MSC_VER */ 1224 #if ndef NO_RSA1393 #if !defined(HAVE_FIPS) && !defined(NO_RSA) 1225 1394 #define WC_RSA_BLINDING 1226 1395 #endif 1396 1397 #define NO_FILESYSTEM 1398 #define ECC_TIMING_RESISTANT 1399 #define TFM_TIMING_RESISTANT 1227 1400 #define SINGLE_THREADED 1228 1401 #define NO_ASN_TIME /* can not use headers such as windows.h */ … … 1284 1457 * all curves are on by default for now */ 1285 1458 #ifndef ECC_USER_CURVES 1286 #if ndef HAVE_ALL_CURVES1459 #if !defined(WOLFSSL_SP_MATH) && !defined(HAVE_ALL_CURVES) 1287 1460 #define HAVE_ALL_CURVES 1288 1461 #endif … … 1300 1473 #define HAVE_ECC_VERIFY 1301 1474 #endif 1475 #ifndef NO_ECC_CHECK_KEY 1476 #undef HAVE_ECC_CHECK_KEY 1477 #define HAVE_ECC_CHECK_KEY 1478 #endif 1302 1479 #ifndef NO_ECC_DHE 1303 1480 #undef HAVE_ECC_DHE … … 1359 1536 #define AES_MAX_KEY_SIZE 256 1360 1537 #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 1361 1555 #ifndef NO_AES_DECRYPT 1362 1556 #undef HAVE_AES_DECRYPT … … 1366 1560 #undef HAVE_AES_CBC 1367 1561 #define HAVE_AES_CBC 1368 #else1369 #ifndef WOLFCRYPT_ONLY1370 #error "AES CBC is required for TLS and can only be disabled for WOLFCRYPT_ONLY builds"1371 #endif1372 1562 #endif 1373 1563 #ifdef WOLFSSL_AES_XTS … … 1377 1567 #endif 1378 1568 #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 1379 1582 #endif 1380 1583 … … 1445 1648 1446 1649 #ifdef WOLFSSL_ASYNC_CRYPT_TEST 1447 #define WC_ASYNC_DEV_SIZE 32 0+241650 #define WC_ASYNC_DEV_SIZE 328+24 1448 1651 #else 1449 #define WC_ASYNC_DEV_SIZE 32 01652 #define WC_ASYNC_DEV_SIZE 328 1450 1653 #endif 1451 1654 … … 1491 1694 1492 1695 #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 1493 1699 #ifndef HAVE_AES_KEYWRAP 1494 1700 #error PKCS7 requires AES key wrap please define HAVE_AES_KEYWRAP 1495 1701 #endif 1496 #if ndef HAVE_X963_KDF1702 #if defined(HAVE_ECC) && !defined(HAVE_X963_KDF) 1497 1703 #error PKCS7 requires X963 KDF please define HAVE_X963_KDF 1498 1704 #endif … … 1517 1723 #endif /* WOLFSSL_MYSQL_COMPATIBLE */ 1518 1724 1519 #if defined( WOLFSSL_NGINX) || defined(WOLFSSL_HAPROXY)1725 #if defined(OPENSSL_ALL) || defined(WOLFSSL_NGINX) || defined(WOLFSSL_HAPROXY) 1520 1726 #define SSL_OP_NO_COMPRESSION SSL_OP_NO_COMPRESSION 1521 1727 #define OPENSSL_NO_ENGINE … … 1557 1763 #if (defined(USE_FAST_MATH) && !defined(TFM_TIMING_RESISTANT)) || \ 1558 1764 (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)) 1560 1767 1561 1768 #ifndef _MSC_VER … … 1567 1774 #endif 1568 1775 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 1569 1861 #ifdef __cplusplus 1570 1862 } /* extern "C" */
Note:
See TracChangeset
for help on using the changeset viewer.