summaryrefslogtreecommitdiffstats
path: root/extra/wolfssl/wolfssl/IDE/Renesas/e2studio/RX72N/EnvisionKit/wolfssl_demo/user_settings.h
diff options
context:
space:
mode:
Diffstat (limited to 'extra/wolfssl/wolfssl/IDE/Renesas/e2studio/RX72N/EnvisionKit/wolfssl_demo/user_settings.h')
-rw-r--r--extra/wolfssl/wolfssl/IDE/Renesas/e2studio/RX72N/EnvisionKit/wolfssl_demo/user_settings.h75
1 files changed, 46 insertions, 29 deletions
diff --git a/extra/wolfssl/wolfssl/IDE/Renesas/e2studio/RX72N/EnvisionKit/wolfssl_demo/user_settings.h b/extra/wolfssl/wolfssl/IDE/Renesas/e2studio/RX72N/EnvisionKit/wolfssl_demo/user_settings.h
index e5cd3333..516bbfe8 100644
--- a/extra/wolfssl/wolfssl/IDE/Renesas/e2studio/RX72N/EnvisionKit/wolfssl_demo/user_settings.h
+++ b/extra/wolfssl/wolfssl/IDE/Renesas/e2studio/RX72N/EnvisionKit/wolfssl_demo/user_settings.h
@@ -28,11 +28,10 @@
*----------------------------------------------------------------------------*/
#define WOLFSSL_RENESAS_RX72N
-
/*-- Renesas TSIP usage and its version ---------------------------------------
*
* "WOLFSSL_RENESAS_TSIP" definition makes wolfSSL to use H/W acceleration
- * for cipher operations.
+ * for cipher operations.
* TSIP definition asks to have its version number.
* "WOLFSSL_RENESAS_TSIP_VER" takes following value:
* 106: TSIPv1.06
@@ -45,6 +44,7 @@
#define WOLFSSL_RENESAS_TSIP
#define WOLFSSL_RENESAS_TSIP_VER 117
+
#if defined(SIMPLE_TLS_CLIENT) || defined(SIMPLE_TLS_SERVER)
#undef WOLFSSL_RENESAS_TSIP
#undef WOLFSSL_RENESAS_TSIP_VER
@@ -54,16 +54,16 @@
*
* wolfSSL supports TLSv1.2 by default. In case you want your system to support
* TLSv1.3, uncomment line below.
- *
+ *
*----------------------------------------------------------------------------*/
#define WOLFSSL_TLS13
/*-- Operating System related definitions --------------------------------------
- *
+ *
* In case any real-time OS is used, define its name(e.g. FREERTOS).
* Otherwise, define "SINGLE_THREADED". They are exclusive each other.
- *
+ *
*----------------------------------------------------------------------------*/
#if !defined(RENESAS_T4_USE)
#define FREERTOS
@@ -114,23 +114,23 @@
/* USE_ECC_CERT
* This macro is for selecting root CA certificate to load, it is valid only
- * in example applications. wolfSSL does not refer this macro.
- * If you want to use cipher suites including ECDSA authentication in
+ * in example applications. wolfSSL does not refer this macro.
+ * If you want to use cipher suites including ECDSA authentication in
* the example applications with TSIP, enable this macro.
- * In TSIP 1.13 or later version, following cipher suites are
+ * In TSIP 1.13 or later version, following cipher suites are
* available:
* - TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256
* - TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SAH256
- *
+ *
* Note that, this macro disables cipher suites including RSA
* authentication such as:
* - TLS_RSA_WITH_AES_128_CBC_SHA
- * - TLS_RSA_WITH_AES_256_CBC_SHA
+ * - TLS_RSA_WITH_AES_256_CBC_SHA
* - TLS_RSA_WITH_AES_128_CBC_SHA256
* - TLS_RSA_WITH_AES_256_CBC_SHA256
* - TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256
* - TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA256
- *
+ *
*/
#define USE_ECC_CERT
@@ -139,14 +139,14 @@
*/
/*#define WOLFSSL_CHECK_SIG_FAULTS*/
- /* In this example application, Root CA cert buffer named
- * "ca_ecc_cert_der_256" is used under the following macro definition
+ /* In this example application, Root CA cert buffer named
+ * "ca_ecc_cert_der_256" is used under the following macro definition
* for ECDSA.
*/
#define USE_CERT_BUFFERS_256
- /* In this example application, Root CA cert buffer named
- * "ca_cert_der_2048" is used under the following macro definition
+ /* In this example application, Root CA cert buffer named
+ * "ca_cert_der_2048" is used under the following macro definition
* for RSA authentication.
*/
#define USE_CERT_BUFFERS_2048
@@ -157,26 +157,27 @@
*----------------------------------------------------------------------------*/
#define SIZEOF_LONG_LONG 8
+ #define WOLFSSL_SMALL_STACK
- /*
+ /*
* -- "NO_ASN_TIME" macro is to avoid certificate expiration validation --
- *
- * Note. In your actual products, do not forget to comment-out
- * "NO_ASN_TIME" macro. And prepare time function to get calender time,
- * otherwise, certificate expiration validation will not work.
+ *
+ * Note. In your actual products, do not forget to comment-out
+ * "NO_ASN_TIME" macro. And prepare time function to get calendar time,
+ * otherwise, certificate expiration validation will not work.
*/
/*#define NO_ASN_TIME*/
-
+
#define NO_MAIN_DRIVER
#define BENCH_EMBEDDED
- #define NO_WOLFSSL_DIR
+ #define NO_WOLFSSL_DIR
#define WOLFSSL_NO_CURRDIR
#define NO_FILESYSTEM
#define WOLFSSL_LOG_PRINTF
#define WOLFSSL_HAVE_MIN
#define WOLFSSL_HAVE_MAX
#define NO_WRITEV
-
+
#define WOLFSSL_USER_CURRTIME /* for benchmark */
#define TIME_OVERRIDES
@@ -209,7 +210,7 @@
/*-- Definitions for functionality negation -----------------------------------
*
- *
+ *
*----------------------------------------------------------------------------*/
/*#define NO_RENESAS_TSIP_CRYPT*/
@@ -220,7 +221,7 @@
#endif
/*-- Consistency checking between definitions ---------------------------------
*
- *
+ *
*----------------------------------------------------------------------------*/
/*-- TSIP TLS specific definitions --*/
@@ -236,14 +237,28 @@
*----------------------------------------------------------------------------*/
#if defined(WOLFSSL_RENESAS_TSIP)
+ /*-- TSIP TLS and/or CRYPTONLY Definition --------------------------------*/
+ /* Enable TSIP TLS (default)
+ * TSIP CRYPTONLY is also enabled.
+ * Disable TSIP TLS
+ * TSIP CRYPTONLY is only enabled.
+ */
+ #define WOLFSSL_RENESAS_TSIP_TLS
#if !defined(NO_RENESAS_TSIP_CRYPT)
- #define WOLFSSL_RENESAS_TSIP_CRYPT
- #define WOLFSSL_RENESAS_TSIP_TLS
- #define WOLFSSL_RENESAS_TSIP_TLS_AES_CRYPT
+ #define WOLFSSL_RENESAS_TSIP_CRYPTONLY
#define HAVE_PK_CALLBACKS
#define WOLF_CRYPTO_CB
- #define WOLF_PRIVATE_KEY_ID
+ #if defined(WOLFSSL_RENESAS_TSIP_TLS)
+ #define WOLFSSL_RENESAS_TSIP_TLS_AES_CRYPT
+ #define WOLF_PRIVATE_KEY_ID
+ #endif
+ #endif
+
+ #if !defined(WOLFSSL_RENESAS_TSIP_TLS) && \
+ defined(WOLFSSL_RENESAS_TSIP_CRYPTONLY)
+ # undef WOLFSSL_RENESAS_TSIP_TLS
+ # undef WOLFSSL_RENESAS_TSIP_CRYPT
#endif
#else
@@ -261,3 +276,5 @@
/*-- strcasecmp */
#define XSTRCASECMP(s1,s2) strcmp((s1),(s2))
+
+#define CUSTOM_RAND_GENERATE_BLOCK wc_tsip_GenerateRandBlock