155 lines
3.6 KiB
C
155 lines
3.6 KiB
C
|
/**
|
||
|
* \file config.h
|
||
|
*
|
||
|
* \brief Configuration options (set of defines)
|
||
|
*
|
||
|
* This set of compile-time options may be used to enable
|
||
|
* or disable features selectively, and reduce the global
|
||
|
* memory footprint.
|
||
|
*
|
||
|
* Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
|
||
|
* SPDX-License-Identifier: Apache-2.0
|
||
|
*
|
||
|
* Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||
|
* not use this file except in compliance with the License.
|
||
|
* You may obtain a copy of the License at
|
||
|
*
|
||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||
|
*
|
||
|
* Unless required by applicable law or agreed to in writing, software
|
||
|
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||
|
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
|
* See the License for the specific language governing permissions and
|
||
|
* limitations under the License.
|
||
|
*
|
||
|
* This file is part of mbed TLS (https://tls.mbed.org)
|
||
|
*/
|
||
|
|
||
|
#ifndef MBEDTLS_CONFIG_H
|
||
|
#define MBEDTLS_CONFIG_H
|
||
|
|
||
|
/**
|
||
|
* \name SECTION: System support
|
||
|
*
|
||
|
* This section sets system specific settings.
|
||
|
* \{
|
||
|
*/
|
||
|
|
||
|
#define MBEDTLS_HAVE_ASM
|
||
|
|
||
|
#define MBEDTLS_KDF_C
|
||
|
#define MBEDTLS_KDF2_C
|
||
|
#define MBEDTLS_FAST_EC_C
|
||
|
#define MBEDTLS_ED25519_C
|
||
|
#define MBEDTLS_ECIES_C
|
||
|
#define MBEDTLS_PK_WRITE_PKCS8_C
|
||
|
#define MBEDTLS_GENPRIME
|
||
|
|
||
|
// #define MBEDTLS_BASE64_C
|
||
|
|
||
|
#define MBEDTLS_ENTROPY_HARDWARE_ALT
|
||
|
|
||
|
#define MBEDTLS_MEMORY_BUFFER_ALLOC_C
|
||
|
#define MBEDTLS_PLATFORM_MEMORY
|
||
|
#define MBEDTLS_PLATFORM_NO_STD_FUNCTIONS
|
||
|
#define MBEDTLS_PLATFORM_FPRINTF_ALT
|
||
|
#define MBEDTLS_PLATFORM_PRINTF_ALT
|
||
|
#define MBEDTLS_PLATFORM_SNPRINTF_ALT
|
||
|
#define MBEDTLS_PLATFORM_EXIT_ALT
|
||
|
|
||
|
|
||
|
#if defined(PC_BUILD)
|
||
|
#else
|
||
|
#define MBEDTLS_TIMING_C
|
||
|
#define MBEDTLS_TIMING_ALT
|
||
|
|
||
|
#define MBEDTLS_AES_ALT
|
||
|
|
||
|
#define MBEDTLS_SHA256_ALT
|
||
|
#define MBEDTLS_SHA512_ALT
|
||
|
|
||
|
#define MBEDTLS_SHA256_PROCESS_ALT
|
||
|
#define MBEDTLS_SHA512_PROCESS_ALT
|
||
|
|
||
|
#define MBEDTLS_AES_SETKEY_ENC_ALT
|
||
|
#define MBEDTLS_AES_SETKEY_DEC_ALT
|
||
|
#define MBEDTLS_AES_ENCRYPT_ALT
|
||
|
#define MBEDTLS_AES_DECRYPT_ALT
|
||
|
|
||
|
#define MBEDTLS_BIGNUM_ALT
|
||
|
|
||
|
#define MBEDTLS_PK_RSA_ALT_SUPPORT
|
||
|
#endif
|
||
|
|
||
|
#define MBEDTLS_CIPHER_MODE_CBC
|
||
|
#define MBEDTLS_CIPHER_MODE_CTR
|
||
|
|
||
|
#define MBEDTLS_REMOVE_ARC4_CIPHERSUITES
|
||
|
|
||
|
#define MBEDTLS_ECP_DP_SECP192K1_ENABLED
|
||
|
#define MBEDTLS_ECP_DP_SECP224K1_ENABLED
|
||
|
#define MBEDTLS_ECP_DP_SECP256K1_ENABLED
|
||
|
#define MBEDTLS_ECP_DP_SECP192R1_ENABLED
|
||
|
#define MBEDTLS_ECP_DP_SECP224R1_ENABLED
|
||
|
#define MBEDTLS_ECP_DP_SECP256R1_ENABLED
|
||
|
#define MBEDTLS_ECP_DP_SECP384R1_ENABLED
|
||
|
#define MBEDTLS_ECP_DP_SECP521R1_ENABLED
|
||
|
#define MBEDTLS_ECP_DP_CURVE25519_ENABLED
|
||
|
|
||
|
#define MBEDTLS_KEY_EXCHANGE_PSK_ENABLED
|
||
|
#define MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED
|
||
|
#define MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED
|
||
|
|
||
|
#define MBEDTLS_PK_PARSE_EC_EXTENDED
|
||
|
|
||
|
#define MBEDTLS_ERROR_STRERROR_DUMMY
|
||
|
|
||
|
#define MBEDTLS_NO_PLATFORM_ENTROPY
|
||
|
|
||
|
#define MBEDTLS_PKCS1_V15
|
||
|
#define MBEDTLS_PKCS1_V21
|
||
|
|
||
|
#define MBEDTLS_VERSION_FEATURES
|
||
|
|
||
|
#define MBEDTLS_AESNI_C
|
||
|
|
||
|
#define MBEDTLS_AES_C
|
||
|
#define MBEDTLS_ASN1_PARSE_C
|
||
|
#define MBEDTLS_ASN1_WRITE_C
|
||
|
#define MBEDTLS_BIGNUM_C
|
||
|
// #define MBEDTLS_CERTS_C
|
||
|
#define MBEDTLS_CIPHER_C
|
||
|
#define MBEDTLS_CTR_DRBG_C
|
||
|
//#define MBEDTLS_DEBUG_C
|
||
|
#define MBEDTLS_DHM_C
|
||
|
#define MBEDTLS_ECDH_C
|
||
|
#define MBEDTLS_ECDSA_C
|
||
|
#define MBEDTLS_ECP_C
|
||
|
#define MBEDTLS_ENTROPY_C
|
||
|
#define MBEDTLS_ERROR_C
|
||
|
#define MBEDTLS_GCM_C
|
||
|
#define MBEDTLS_HMAC_DRBG_C
|
||
|
#define MBEDTLS_MD_C
|
||
|
#define MBEDTLS_MD5_C
|
||
|
|
||
|
#define MBEDTLS_OID_C
|
||
|
#define MBEDTLS_PADLOCK_C
|
||
|
|
||
|
#define MBEDTLS_PK_C
|
||
|
#define MBEDTLS_PK_PARSE_C
|
||
|
#define MBEDTLS_PK_WRITE_C
|
||
|
#define MBEDTLS_PKCS12_C
|
||
|
#define MBEDTLS_PLATFORM_C
|
||
|
//
|
||
|
#define MBEDTLS_RSA_C
|
||
|
|
||
|
#define MBEDTLS_SHA1_C
|
||
|
#define MBEDTLS_SHA256_C
|
||
|
#define MBEDTLS_SHA512_C
|
||
|
|
||
|
#define MBEDTLS_VERSION_C
|
||
|
|
||
|
#include "check_config.h"
|
||
|
|
||
|
#endif /* MBEDTLS_CONFIG_H */
|