wolfssl-w32/IDE/Renesas/e2studio/RZN2L/common/user_settings.h

116 lines
3.1 KiB
C
Raw Normal View History

/* user_settings.h
*
* Copyright (C) 2006-2023 wolfSSL Inc.
*
* This file is part of wolfSSL.
*
* wolfSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* wolfSSL is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
*/
/* Operating Environment and Threading */
#if defined(WOLFSSL_RENESAS_RSIP)
/* FSP SM stands for Flexible Software Package Security Module
* WOLFSSL_RENESAS_FSPSM enables fundamental code when it uses.
* e.g. Open/Close/Random generator
* WOLFSSL_RENESAS_FSPSPM_TLS enables TLS related code for FSP SM
* e.g. Certificate verification, Master Secret Generation
* WOLFSSL_RENESAS_SCEPROTECT enables specific code for SCE if needed
*/
#define WOLFSSL_RENESAS_FSPSM
/* Not yet supported TLS related capabilities */
/* # define WOLFSSL_RENESAS_FSPSM_TLS */
#endif
/* XXX_CRYPTONLY definition enables FSP SM module for Crypto only use.
* Therefore, it disables TLS related API use
*/
/* #define WOLFSSL_RENESAS_RSIP_CRYPTONLY */
#if defined(WOLFSSL_RENESAS_RSIP_CRYPTONLY)
#undef WOLFSSL_RENESAS_FSPSM_TLS
#define WOLFSSL_RENESAS_FSPSM_CRYPTONLY
#if !defined(WOLFSSL_RENESAS_RSPI)
#define WOLFSSL_RENESAS_RSPI
#endif
#endif
#define FREERTOS
#define FREERTOS_TCP
#define NO_MAIN_DRIVER
#define BENCH_EMBEDDED
#define NO_WRITEV
#define WOLFSSL_NO_FLOAT_FMT
#define NO_DEV_RANDOM
#define SIZEOF_LONG_LONG 8
#define NO_WOLFSSL_DIR
#define WOLFSSL_NO_CURRDIR
#define NO_WOLF_C99
#define NO_MULTIBYTE_PRINT
#define NO_FILESYSTEM
#define XVALIDATEDATE(d, f,t) (0)
#define TFM_TIMING_RESISTANT
#define ECC_TIMING_RESISTANT
#define WC_RSA_BLINDING
#define HAVE_AESGCM
#define WOLFSSL_SHA224
#define WOLFSSL_SHA384
#define WOLFSSL_SHA512
#define HAVE_ECC
#define HAVE_CURVE25519
#define CURVE25519_SMALL
#define WOLFSSL_SMALL_STACK
#define USE_FAST_MATH
/* static RSA */
#define WOLFSSL_STATIC_RSA
/* Enable to use TLS1.3 */
#define WOLFSSL_TLS13
#if defined(WOLFSSL_TLS13)
#include <sys/time.h>
#define HAVE_FFDHE_2048
#define HAVE_HKDF
#define WC_RSA_PSS
#define HAVE_TLS_EXTENSIONS
#define HAVE_SUPPORTED_CURVES
#endif
#define WOLF_CRYPTO_CB
#if defined(WOLFSSL_RENESAS_RSIP_CRYPTONLY)
#define HAVE_RENESAS_SYNC
#define WC_USE_DEVID 7890
#define NO_AES_192
#define NO_SW_BENCH
#endif
#if defined(WOLFSSL_RENESAS_RSIP_CRYPTONLY)
#define WOLFSSL_KEY_GEN
#endif
int uart_printf (const char *__restrict format, ...);
#undef printf
#define printf uart_printf
#define TEST_SLEEP() vTaskDelay(50)
#define CUSTOM_RAND_GENERATE_BLOCK wc_fspsm_GenerateRandBlock