123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486 |
- #define WOLFSSL_USER_SETTINGS_ID "Arduino user_settings.h v5.7.4"
- #undef WOLFSSL_IGNORE_FILE_WARN
- #define WOLFSSL_IGNORE_FILE_WARN
- #define NO_FILESYSTEM
- #define USE_CERT_BUFFERS_2048
- #undef WOLFSSL_ESPIDF
- #define HAVE_ECC
- #define WOLFSSL_SMALL_STACK
- #define MICRO_SESSION_CACHE
- #define RSA_LOW_MEM
- #define NO_OLD_TLS
- #if defined(WOLFSSL_TLS13)
- #define HAVE_TLS_EXTENSIONS
- #define WC_RSA_PSS
- #define HAVE_HKDF
- #define HAVE_AEAD
- #endif
- #define HAVE_TLS_EXTENSIONS
- #define HAVE_SUPPORTED_CURVES
- #if defined(WOLFSSL_CLIENT_EXAMPLE)
- #define NO_WOLFSSL_SERVER
- #elif defined(WOLFSSL_SERVER_EXAMPLE)
- #define NO_WOLFSSL_CLIENT
- #else
-
- #define NO_WOLFSSL_SERVER_CLIENT_MISSING
- #warning "Define WOLFSSL_CLIENT_EXAMPLE or WOLFSSL_SERVER_EXAMPLE to" \
- " optimize memory for small embedded devices."
-
- #endif
- #define NO_DH
- #define NO_DSA
- #define USE_FAST_MATH
- #define WOLFSSL_SMALL_STACK
- #define SINGLE_THREADED
- #define WOLFSSL_LOW_MEMORY
- #define HAVE_AESGCM
- #define SINGLE_THREADED
- #if defined(WOLFSSL_ESPWROOM32SE)
- #define WOLFSSL_ATECC508A
- #define HAVE_PK_CALLBACKS
-
-
-
-
- #endif
- #if defined(WOLFSSL_ESP32) || defined(WOLFSSL_ESPWROOM32SE)
-
- #define ESP32_USE_RSA_PRIMITIVE
- #if defined(CONFIG_IDF_TARGET_ESP32)
-
-
-
- #undef ESP_RSA_EXPT_XBITS
- #define ESP_RSA_EXPT_XBITS 32
-
- #undef ESP_RSA_MULM_BITS
- #define ESP_RSA_MULM_BITS 16
- #endif
- #endif
- #define ESP_RSA_TIMEOUT_CNT 0x249F00
- #define HASH_SIZE_LIMIT
- #define USE_FAST_MATH
- #if defined(CONFIG_IDF_TARGET_ESP32)
-
-
-
-
-
-
-
-
-
- #define NO_WOLFSSL_ESP32_CRYPT_HASH_SHA224
- #undef ESP_RSA_MULM_BITS
- #define ESP_RSA_MULM_BITS 16
-
- #elif defined(CONFIG_IDF_TARGET_ESP32S2)
-
-
-
-
-
-
-
-
-
-
- #elif defined(CONFIG_IDF_TARGET_ESP32S3)
-
-
-
-
-
-
-
-
-
-
- #elif defined(CONFIG_IDF_TARGET_ESP32C2) || \
- defined(CONFIG_IDF_TARGET_ESP8684)
-
-
-
-
-
- #define NO_WOLFSSL_ESP32_CRYPT_HASH_SHA384
- #define NO_WOLFSSL_ESP32_CRYPT_HASH_SHA512
-
- #define NO_WOLFSSL_ESP32_CRYPT_AES
- #define NO_WOLFSSL_ESP32_CRYPT_RSA_PRI
- #define NO_WOLFSSL_ESP32_CRYPT_RSA_PRI_MP_MUL
- #define NO_WOLFSSL_ESP32_CRYPT_RSA_PRI_MULMOD
- #define NO_WOLFSSL_ESP32_CRYPT_RSA_PRI_EXPTMOD
-
- #elif defined(CONFIG_IDF_TARGET_ESP32C3)
-
-
-
-
- #define NO_WOLFSSL_ESP32_CRYPT_HASH_SHA384
- #define NO_WOLFSSL_ESP32_CRYPT_HASH_SHA512
-
-
-
-
-
-
- #elif defined(CONFIG_IDF_TARGET_ESP32C6)
-
-
-
-
- #define NO_WOLFSSL_ESP32_CRYPT_HASH_SHA384
- #define NO_WOLFSSL_ESP32_CRYPT_HASH_SHA512
-
-
-
-
-
-
- #elif defined(CONFIG_IDF_TARGET_ESP32H2)
-
- #define NO_ESP32_CRYPT
- #define NO_WOLFSSL_ESP32_CRYPT_HASH
- #define NO_WOLFSSL_ESP32_CRYPT_AES
- #define NO_WOLFSSL_ESP32_CRYPT_RSA_PRI
-
- #elif defined(CONFIG_IDF_TARGET_ESP8266)
-
- #define NO_ESP32_CRYPT
- #define NO_WOLFSSL_ESP32_CRYPT_HASH
- #define NO_WOLFSSL_ESP32_CRYPT_AES
- #define NO_WOLFSSL_ESP32_CRYPT_RSA_PRI
-
- #else
-
- #define NO_ESP32_CRYPT
- #define NO_WOLFSSL_ESP32_CRYPT_HASH
- #define NO_WOLFSSL_ESP32_CRYPT_AES
- #define NO_WOLFSSL_ESP32_CRYPT_RSA_PRI
- #endif
- #define DEBUG_WOLFSSL
- #define WOLFSSL_ESPIDF_ERROR_PAUSE
- #define WOLFSSL_HW_METRICS
- #define ALT_ECC_SIZE
-
-
- #define WOLFSSL_PUBLIC_MP
- #if defined(WOLFSSL_SM2) || defined(WOLFSSL_SM3) || defined(WOLFSSL_SM4)
- #include <wolfssl/certs_test_sm.h>
- #define CTX_CA_CERT root_sm2
- #define CTX_CA_CERT_SIZE sizeof_root_sm2
- #define CTX_CA_CERT_TYPE WOLFSSL_FILETYPE_PEM
- #define CTX_SERVER_CERT server_sm2
- #define CTX_SERVER_CERT_SIZE sizeof_server_sm2
- #define CTX_SERVER_CERT_TYPE WOLFSSL_FILETYPE_PEM
- #define CTX_SERVER_KEY server_sm2_priv
- #define CTX_SERVER_KEY_SIZE sizeof_server_sm2_priv
- #define CTX_SERVER_KEY_TYPE WOLFSSL_FILETYPE_PEM
- #undef WOLFSSL_BASE16
- #define WOLFSSL_BASE16
- #else
- #if defined(USE_CERT_BUFFERS_2048)
- #ifdef USE_CERT_BUFFERS_1024
- #error "USE_CERT_BUFFERS_1024 is already defined. Pick one."
- #endif
- #include <wolfssl/certs_test.h>
- #define CTX_CA_CERT ca_cert_der_2048
- #define CTX_CA_CERT_SIZE sizeof_ca_cert_der_2048
- #define CTX_CA_CERT_TYPE WOLFSSL_FILETYPE_ASN1
- #define CTX_SERVER_CERT server_cert_der_2048
- #define CTX_SERVER_CERT_SIZE sizeof_server_cert_der_2048
- #define CTX_SERVER_CERT_TYPE WOLFSSL_FILETYPE_ASN1
- #define CTX_SERVER_KEY server_key_der_2048
- #define CTX_SERVER_KEY_SIZE sizeof_server_key_der_2048
- #define CTX_SERVER_KEY_TYPE WOLFSSL_FILETYPE_ASN1
- #define CTX_CLIENT_CERT client_cert_der_2048
- #define CTX_CLIENT_CERT_SIZE sizeof_client_cert_der_2048
- #define CTX_CLIENT_CERT_TYPE WOLFSSL_FILETYPE_ASN1
- #define CTX_CLIENT_KEY client_key_der_2048
- #define CTX_CLIENT_KEY_SIZE sizeof_client_key_der_2048
- #define CTX_CLIENT_KEY_TYPE WOLFSSL_FILETYPE_ASN1
- #elif defined(USE_CERT_BUFFERS_1024)
- #ifdef USE_CERT_BUFFERS_2048
- #error "USE_CERT_BUFFERS_2048 is already defined. Pick one."
- #endif
- #include <wolfssl/certs_test.h>
- #define CTX_CA_CERT ca_cert_der_1024
- #define CTX_CA_CERT_SIZE sizeof_ca_cert_der_1024
- #define CTX_CA_CERT_TYPE WOLFSSL_FILETYPE_ASN1
- #define CTX_CLIENT_CERT client_cert_der_1024
- #define CTX_CLIENT_CERT_SIZE sizeof_client_cert_der_1024
- #define CTX_CLIENT_CERT_TYPE WOLFSSL_FILETYPE_ASN1
- #define CTX_CLIENT_KEY client_key_der_1024
- #define CTX_CLIENT_KEY_SIZE sizeof_client_key_der_1024
- #define CTX_CLIENT_KEY_TYPE WOLFSSL_FILETYPE_ASN1
- #define CTX_SERVER_CERT server_cert_der_1024
- #define CTX_SERVER_CERT_SIZE sizeof_server_cert_der_1024
- #define CTX_SERVER_CERT_TYPE WOLFSSL_FILETYPE_ASN1
- #define CTX_SERVER_KEY server_key_der_1024
- #define CTX_SERVER_KEY_SIZE sizeof_server_key_der_1024
- #define CTX_SERVER_KEY_TYPE WOLFSSL_FILETYPE_ASN1
- #else
- #error "Must define USE_CERT_BUFFERS_2048 or USE_CERT_BUFFERS_1024"
- #endif
- #endif
|