113 lines
2.6 KiB
C
113 lines
2.6 KiB
C
/* user_settings.h
|
|
*
|
|
* Custom configuration for wolfCrypt/wolfSSL.
|
|
* Enabled via WOLFSSL_USER_SETTINGS.
|
|
*
|
|
*
|
|
* Copyright (C) 2020 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
|
|
*/
|
|
|
|
#ifndef H_USER_SETTINGS_
|
|
#define H_USER_SETTINGS_
|
|
#include <stdio.h>
|
|
#include "fsl_debug_console.h"
|
|
|
|
/* System */
|
|
#define WOLFSSL_GENERAL_ALIGNMENT 4
|
|
#define SINGLE_THREADED
|
|
#define WOLFCRYPT_ONLY
|
|
#define SIZEOF_LONG_LONG 8
|
|
#define BENCH_EMBEDDED
|
|
#define NO_WOLFSSL_MEMORY
|
|
|
|
int32_t cust_rand_generate_block(uint8_t *rndb, uint32_t sz);
|
|
#define CUSTOM_RAND_GENERATE_BLOCK cust_rand_generate_block
|
|
|
|
#define NO_WOLFSSL_DIR
|
|
#define WOLFSSL_NO_CURRDIR
|
|
|
|
#define HAVE_ED25519
|
|
#define ED25519_SMALL
|
|
#define WOLFSSL_SHA512
|
|
|
|
#define HAVE_ECC
|
|
#define ECC_TIMING_RESISTANT
|
|
#undef USE_FAST_MATH
|
|
#define WOLFSSL_HAVE_SP_ECC
|
|
|
|
|
|
|
|
/* SP MATH */
|
|
#define WOLFSSL_SP_ASM
|
|
#define WOLFSSL_SP_ARM_CORTEX_M_ASM
|
|
#define WOLFSSL_SP
|
|
#define WOLFSSL_SP_MATH
|
|
#define WOLFSSL_SP_SMALL
|
|
#define SP_WORD_SIZE 32
|
|
|
|
/* Curve */
|
|
# define HAVE_ECC256
|
|
|
|
#define HAVE_RSA
|
|
#define RSA_LOW_MEM
|
|
#define WOLFSSL_HAVE_SP_RSA
|
|
#define WOLFSSL_SP
|
|
#define WOLFSSL_SP_SMALL
|
|
#define WOLFSSL_SP_MATH
|
|
#define SP_WORD_SIZE 32
|
|
#define WC_RSA_BLINDING
|
|
|
|
#define WOLFSSL_SHA3
|
|
|
|
#define HAVE_CHACHA
|
|
#define HAVE_AESGCM
|
|
#define HAVE_AES_ECB
|
|
//#define AES_MAX_KEY_SIZE 128
|
|
#define WOLFSSL_AES_DIRECT
|
|
#define HAVE_PWDBASED
|
|
#define HAVE_POLY1035
|
|
|
|
/* Disables - For minimum wolfCrypt build */
|
|
#define WOLFSSL_NO_PEM
|
|
#define NO_RC4
|
|
#define NO_DSA
|
|
#define NO_MD4
|
|
#define NO_DH
|
|
#define NO_RABBIT
|
|
#define NO_SIG_WRAPPER
|
|
#define NO_CERT
|
|
#define NO_SESSION_CACHE
|
|
#define NO_HC128
|
|
#define NO_DES3
|
|
#define WC_NO_HASHDRBG
|
|
#define NO_WRITEV
|
|
#define NO_DEV_RANDOM
|
|
#define NO_FILESYSTEM
|
|
#define NO_MAIN_DRIVER
|
|
#define NO_OLD_RNGNAME
|
|
#define NO_WOLFSSL_DIR
|
|
#define WOLFSSL_NO_SOCK
|
|
#define WOLFSSL_IGNORE_FILE_WARN
|
|
#define NO_ERROR_STRINGS
|
|
|
|
#define BENCH_EMBEDDED
|
|
#define XPRINTF PRINTF
|
|
|
|
#endif /* !H_USER_SETTINGS_ */
|