2014-04-30 09:49:44 +00:00
|
|
|
/*
|
|
|
|
* Version feature information
|
|
|
|
*
|
2015-07-27 09:11:48 +00:00
|
|
|
* Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
|
2015-09-04 12:21:07 +00:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2014-04-30 09:49:44 +00:00
|
|
|
*
|
2015-09-04 12:21:07 +00:00
|
|
|
* 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
|
2014-04-30 09:49:44 +00:00
|
|
|
*
|
2015-09-04 12:21:07 +00:00
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
2014-04-30 09:49:44 +00:00
|
|
|
*
|
2015-09-04 12:21:07 +00:00
|
|
|
* 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.
|
2014-04-30 09:49:44 +00:00
|
|
|
*
|
2015-09-04 12:21:07 +00:00
|
|
|
* This file is part of mbed TLS (https://tls.mbed.org)
|
2014-04-30 09:49:44 +00:00
|
|
|
*/
|
|
|
|
|
2015-04-08 10:49:31 +00:00
|
|
|
#if !defined(MBEDTLS_CONFIG_FILE)
|
2015-03-09 17:05:11 +00:00
|
|
|
#include "mbedtls/config.h"
|
2014-04-29 10:39:06 +00:00
|
|
|
#else
|
2015-04-08 10:49:31 +00:00
|
|
|
#include MBEDTLS_CONFIG_FILE
|
2014-04-29 10:39:06 +00:00
|
|
|
#endif
|
2014-04-30 09:49:44 +00:00
|
|
|
|
2015-04-08 10:49:31 +00:00
|
|
|
#if defined(MBEDTLS_VERSION_C)
|
2014-04-30 09:49:44 +00:00
|
|
|
|
2015-03-09 17:05:11 +00:00
|
|
|
#include "mbedtls/version.h"
|
2014-04-30 09:49:44 +00:00
|
|
|
|
|
|
|
#include <string.h>
|
|
|
|
|
2019-06-12 10:26:37 +00:00
|
|
|
static const char * const features[] = {
|
2015-04-08 10:49:31 +00:00
|
|
|
#if defined(MBEDTLS_VERSION_FEATURES)
|
|
|
|
#if defined(MBEDTLS_HAVE_ASM)
|
|
|
|
"MBEDTLS_HAVE_ASM",
|
|
|
|
#endif /* MBEDTLS_HAVE_ASM */
|
2017-06-15 16:01:54 +00:00
|
|
|
#if defined(MBEDTLS_NO_UDBL_DIVISION)
|
|
|
|
"MBEDTLS_NO_UDBL_DIVISION",
|
|
|
|
#endif /* MBEDTLS_NO_UDBL_DIVISION */
|
2018-06-07 08:51:44 +00:00
|
|
|
#if defined(MBEDTLS_NO_64BIT_MULTIPLICATION)
|
|
|
|
"MBEDTLS_NO_64BIT_MULTIPLICATION",
|
|
|
|
#endif /* MBEDTLS_NO_64BIT_MULTIPLICATION */
|
2015-04-08 10:49:31 +00:00
|
|
|
#if defined(MBEDTLS_HAVE_SSE2)
|
|
|
|
"MBEDTLS_HAVE_SSE2",
|
|
|
|
#endif /* MBEDTLS_HAVE_SSE2 */
|
|
|
|
#if defined(MBEDTLS_HAVE_TIME)
|
|
|
|
"MBEDTLS_HAVE_TIME",
|
|
|
|
#endif /* MBEDTLS_HAVE_TIME */
|
2015-06-22 10:06:50 +00:00
|
|
|
#if defined(MBEDTLS_HAVE_TIME_DATE)
|
|
|
|
"MBEDTLS_HAVE_TIME_DATE",
|
|
|
|
#endif /* MBEDTLS_HAVE_TIME_DATE */
|
2015-04-08 10:49:31 +00:00
|
|
|
#if defined(MBEDTLS_PLATFORM_MEMORY)
|
|
|
|
"MBEDTLS_PLATFORM_MEMORY",
|
|
|
|
#endif /* MBEDTLS_PLATFORM_MEMORY */
|
|
|
|
#if defined(MBEDTLS_PLATFORM_NO_STD_FUNCTIONS)
|
|
|
|
"MBEDTLS_PLATFORM_NO_STD_FUNCTIONS",
|
|
|
|
#endif /* MBEDTLS_PLATFORM_NO_STD_FUNCTIONS */
|
|
|
|
#if defined(MBEDTLS_PLATFORM_EXIT_ALT)
|
|
|
|
"MBEDTLS_PLATFORM_EXIT_ALT",
|
|
|
|
#endif /* MBEDTLS_PLATFORM_EXIT_ALT */
|
2016-04-26 18:51:29 +00:00
|
|
|
#if defined(MBEDTLS_PLATFORM_TIME_ALT)
|
|
|
|
"MBEDTLS_PLATFORM_TIME_ALT",
|
|
|
|
#endif /* MBEDTLS_PLATFORM_TIME_ALT */
|
2015-04-08 10:49:31 +00:00
|
|
|
#if defined(MBEDTLS_PLATFORM_FPRINTF_ALT)
|
|
|
|
"MBEDTLS_PLATFORM_FPRINTF_ALT",
|
|
|
|
#endif /* MBEDTLS_PLATFORM_FPRINTF_ALT */
|
|
|
|
#if defined(MBEDTLS_PLATFORM_PRINTF_ALT)
|
|
|
|
"MBEDTLS_PLATFORM_PRINTF_ALT",
|
|
|
|
#endif /* MBEDTLS_PLATFORM_PRINTF_ALT */
|
|
|
|
#if defined(MBEDTLS_PLATFORM_SNPRINTF_ALT)
|
|
|
|
"MBEDTLS_PLATFORM_SNPRINTF_ALT",
|
|
|
|
#endif /* MBEDTLS_PLATFORM_SNPRINTF_ALT */
|
2018-07-16 12:27:07 +00:00
|
|
|
#if defined(MBEDTLS_PLATFORM_VSNPRINTF_ALT)
|
|
|
|
"MBEDTLS_PLATFORM_VSNPRINTF_ALT",
|
|
|
|
#endif /* MBEDTLS_PLATFORM_VSNPRINTF_ALT */
|
2016-06-01 14:58:12 +00:00
|
|
|
#if defined(MBEDTLS_PLATFORM_NV_SEED_ALT)
|
|
|
|
"MBEDTLS_PLATFORM_NV_SEED_ALT",
|
|
|
|
#endif /* MBEDTLS_PLATFORM_NV_SEED_ALT */
|
2017-07-21 22:48:55 +00:00
|
|
|
#if defined(MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT)
|
|
|
|
"MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT",
|
|
|
|
#endif /* MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT */
|
2015-04-08 10:49:31 +00:00
|
|
|
#if defined(MBEDTLS_DEPRECATED_WARNING)
|
|
|
|
"MBEDTLS_DEPRECATED_WARNING",
|
|
|
|
#endif /* MBEDTLS_DEPRECATED_WARNING */
|
|
|
|
#if defined(MBEDTLS_DEPRECATED_REMOVED)
|
|
|
|
"MBEDTLS_DEPRECATED_REMOVED",
|
|
|
|
#endif /* MBEDTLS_DEPRECATED_REMOVED */
|
2019-01-31 13:20:20 +00:00
|
|
|
#if defined(MBEDTLS_CHECK_PARAMS)
|
|
|
|
"MBEDTLS_CHECK_PARAMS",
|
|
|
|
#endif /* MBEDTLS_CHECK_PARAMS */
|
2019-06-13 14:44:19 +00:00
|
|
|
#if defined(MBEDTLS_CHECK_PARAMS_ASSERT)
|
|
|
|
"MBEDTLS_CHECK_PARAMS_ASSERT",
|
|
|
|
#endif /* MBEDTLS_CHECK_PARAMS_ASSERT */
|
2015-04-08 10:49:31 +00:00
|
|
|
#if defined(MBEDTLS_TIMING_ALT)
|
|
|
|
"MBEDTLS_TIMING_ALT",
|
|
|
|
#endif /* MBEDTLS_TIMING_ALT */
|
|
|
|
#if defined(MBEDTLS_AES_ALT)
|
|
|
|
"MBEDTLS_AES_ALT",
|
|
|
|
#endif /* MBEDTLS_AES_ALT */
|
|
|
|
#if defined(MBEDTLS_ARC4_ALT)
|
|
|
|
"MBEDTLS_ARC4_ALT",
|
|
|
|
#endif /* MBEDTLS_ARC4_ALT */
|
2017-12-01 15:41:38 +00:00
|
|
|
#if defined(MBEDTLS_ARIA_ALT)
|
|
|
|
"MBEDTLS_ARIA_ALT",
|
|
|
|
#endif /* MBEDTLS_ARIA_ALT */
|
2015-04-08 10:49:31 +00:00
|
|
|
#if defined(MBEDTLS_BLOWFISH_ALT)
|
|
|
|
"MBEDTLS_BLOWFISH_ALT",
|
|
|
|
#endif /* MBEDTLS_BLOWFISH_ALT */
|
|
|
|
#if defined(MBEDTLS_CAMELLIA_ALT)
|
|
|
|
"MBEDTLS_CAMELLIA_ALT",
|
|
|
|
#endif /* MBEDTLS_CAMELLIA_ALT */
|
2017-04-04 10:02:37 +00:00
|
|
|
#if defined(MBEDTLS_CCM_ALT)
|
|
|
|
"MBEDTLS_CCM_ALT",
|
|
|
|
#endif /* MBEDTLS_CCM_ALT */
|
2016-05-15 20:28:08 +00:00
|
|
|
#if defined(MBEDTLS_CHACHA20_ALT)
|
|
|
|
"MBEDTLS_CHACHA20_ALT",
|
|
|
|
#endif /* MBEDTLS_CHACHA20_ALT */
|
2018-06-04 10:42:17 +00:00
|
|
|
#if defined(MBEDTLS_CHACHAPOLY_ALT)
|
|
|
|
"MBEDTLS_CHACHAPOLY_ALT",
|
|
|
|
#endif /* MBEDTLS_CHACHAPOLY_ALT */
|
2017-04-04 10:01:42 +00:00
|
|
|
#if defined(MBEDTLS_CMAC_ALT)
|
|
|
|
"MBEDTLS_CMAC_ALT",
|
|
|
|
#endif /* MBEDTLS_CMAC_ALT */
|
2015-04-08 10:49:31 +00:00
|
|
|
#if defined(MBEDTLS_DES_ALT)
|
|
|
|
"MBEDTLS_DES_ALT",
|
|
|
|
#endif /* MBEDTLS_DES_ALT */
|
2018-01-09 16:43:21 +00:00
|
|
|
#if defined(MBEDTLS_DHM_ALT)
|
|
|
|
"MBEDTLS_DHM_ALT",
|
|
|
|
#endif /* MBEDTLS_DHM_ALT */
|
2018-01-24 10:25:05 +00:00
|
|
|
#if defined(MBEDTLS_ECJPAKE_ALT)
|
|
|
|
"MBEDTLS_ECJPAKE_ALT",
|
|
|
|
#endif /* MBEDTLS_ECJPAKE_ALT */
|
2017-09-21 11:53:48 +00:00
|
|
|
#if defined(MBEDTLS_GCM_ALT)
|
|
|
|
"MBEDTLS_GCM_ALT",
|
|
|
|
#endif /* MBEDTLS_GCM_ALT */
|
2018-05-03 13:54:28 +00:00
|
|
|
#if defined(MBEDTLS_NIST_KW_ALT)
|
|
|
|
"MBEDTLS_NIST_KW_ALT",
|
|
|
|
#endif /* MBEDTLS_NIST_KW_ALT */
|
2015-04-08 10:49:31 +00:00
|
|
|
#if defined(MBEDTLS_MD2_ALT)
|
|
|
|
"MBEDTLS_MD2_ALT",
|
|
|
|
#endif /* MBEDTLS_MD2_ALT */
|
|
|
|
#if defined(MBEDTLS_MD4_ALT)
|
|
|
|
"MBEDTLS_MD4_ALT",
|
|
|
|
#endif /* MBEDTLS_MD4_ALT */
|
|
|
|
#if defined(MBEDTLS_MD5_ALT)
|
|
|
|
"MBEDTLS_MD5_ALT",
|
|
|
|
#endif /* MBEDTLS_MD5_ALT */
|
2016-05-17 23:33:28 +00:00
|
|
|
#if defined(MBEDTLS_POLY1305_ALT)
|
|
|
|
"MBEDTLS_POLY1305_ALT",
|
|
|
|
#endif /* MBEDTLS_POLY1305_ALT */
|
2015-04-08 10:49:31 +00:00
|
|
|
#if defined(MBEDTLS_RIPEMD160_ALT)
|
|
|
|
"MBEDTLS_RIPEMD160_ALT",
|
|
|
|
#endif /* MBEDTLS_RIPEMD160_ALT */
|
2018-01-04 18:26:54 +00:00
|
|
|
#if defined(MBEDTLS_RSA_ALT)
|
|
|
|
"MBEDTLS_RSA_ALT",
|
|
|
|
#endif /* MBEDTLS_RSA_ALT */
|
2015-04-08 10:49:31 +00:00
|
|
|
#if defined(MBEDTLS_SHA1_ALT)
|
|
|
|
"MBEDTLS_SHA1_ALT",
|
|
|
|
#endif /* MBEDTLS_SHA1_ALT */
|
|
|
|
#if defined(MBEDTLS_SHA256_ALT)
|
|
|
|
"MBEDTLS_SHA256_ALT",
|
|
|
|
#endif /* MBEDTLS_SHA256_ALT */
|
|
|
|
#if defined(MBEDTLS_SHA512_ALT)
|
|
|
|
"MBEDTLS_SHA512_ALT",
|
|
|
|
#endif /* MBEDTLS_SHA512_ALT */
|
2018-01-04 18:26:54 +00:00
|
|
|
#if defined(MBEDTLS_XTEA_ALT)
|
|
|
|
"MBEDTLS_XTEA_ALT",
|
|
|
|
#endif /* MBEDTLS_XTEA_ALT */
|
2016-11-21 14:53:57 +00:00
|
|
|
#if defined(MBEDTLS_ECP_ALT)
|
|
|
|
"MBEDTLS_ECP_ALT",
|
|
|
|
#endif /* MBEDTLS_ECP_ALT */
|
2015-04-08 10:49:31 +00:00
|
|
|
#if defined(MBEDTLS_MD2_PROCESS_ALT)
|
|
|
|
"MBEDTLS_MD2_PROCESS_ALT",
|
|
|
|
#endif /* MBEDTLS_MD2_PROCESS_ALT */
|
|
|
|
#if defined(MBEDTLS_MD4_PROCESS_ALT)
|
|
|
|
"MBEDTLS_MD4_PROCESS_ALT",
|
|
|
|
#endif /* MBEDTLS_MD4_PROCESS_ALT */
|
|
|
|
#if defined(MBEDTLS_MD5_PROCESS_ALT)
|
|
|
|
"MBEDTLS_MD5_PROCESS_ALT",
|
|
|
|
#endif /* MBEDTLS_MD5_PROCESS_ALT */
|
|
|
|
#if defined(MBEDTLS_RIPEMD160_PROCESS_ALT)
|
|
|
|
"MBEDTLS_RIPEMD160_PROCESS_ALT",
|
|
|
|
#endif /* MBEDTLS_RIPEMD160_PROCESS_ALT */
|
|
|
|
#if defined(MBEDTLS_SHA1_PROCESS_ALT)
|
|
|
|
"MBEDTLS_SHA1_PROCESS_ALT",
|
|
|
|
#endif /* MBEDTLS_SHA1_PROCESS_ALT */
|
|
|
|
#if defined(MBEDTLS_SHA256_PROCESS_ALT)
|
|
|
|
"MBEDTLS_SHA256_PROCESS_ALT",
|
|
|
|
#endif /* MBEDTLS_SHA256_PROCESS_ALT */
|
|
|
|
#if defined(MBEDTLS_SHA512_PROCESS_ALT)
|
|
|
|
"MBEDTLS_SHA512_PROCESS_ALT",
|
|
|
|
#endif /* MBEDTLS_SHA512_PROCESS_ALT */
|
2015-05-12 14:09:34 +00:00
|
|
|
#if defined(MBEDTLS_DES_SETKEY_ALT)
|
|
|
|
"MBEDTLS_DES_SETKEY_ALT",
|
|
|
|
#endif /* MBEDTLS_DES_SETKEY_ALT */
|
|
|
|
#if defined(MBEDTLS_DES_CRYPT_ECB_ALT)
|
|
|
|
"MBEDTLS_DES_CRYPT_ECB_ALT",
|
|
|
|
#endif /* MBEDTLS_DES_CRYPT_ECB_ALT */
|
|
|
|
#if defined(MBEDTLS_DES3_CRYPT_ECB_ALT)
|
|
|
|
"MBEDTLS_DES3_CRYPT_ECB_ALT",
|
|
|
|
#endif /* MBEDTLS_DES3_CRYPT_ECB_ALT */
|
|
|
|
#if defined(MBEDTLS_AES_SETKEY_ENC_ALT)
|
|
|
|
"MBEDTLS_AES_SETKEY_ENC_ALT",
|
|
|
|
#endif /* MBEDTLS_AES_SETKEY_ENC_ALT */
|
|
|
|
#if defined(MBEDTLS_AES_SETKEY_DEC_ALT)
|
|
|
|
"MBEDTLS_AES_SETKEY_DEC_ALT",
|
|
|
|
#endif /* MBEDTLS_AES_SETKEY_DEC_ALT */
|
|
|
|
#if defined(MBEDTLS_AES_ENCRYPT_ALT)
|
|
|
|
"MBEDTLS_AES_ENCRYPT_ALT",
|
|
|
|
#endif /* MBEDTLS_AES_ENCRYPT_ALT */
|
|
|
|
#if defined(MBEDTLS_AES_DECRYPT_ALT)
|
|
|
|
"MBEDTLS_AES_DECRYPT_ALT",
|
|
|
|
#endif /* MBEDTLS_AES_DECRYPT_ALT */
|
2017-10-10 16:04:27 +00:00
|
|
|
#if defined(MBEDTLS_ECDH_GEN_PUBLIC_ALT)
|
|
|
|
"MBEDTLS_ECDH_GEN_PUBLIC_ALT",
|
|
|
|
#endif /* MBEDTLS_ECDH_GEN_PUBLIC_ALT */
|
2017-10-12 11:17:48 +00:00
|
|
|
#if defined(MBEDTLS_ECDH_COMPUTE_SHARED_ALT)
|
|
|
|
"MBEDTLS_ECDH_COMPUTE_SHARED_ALT",
|
|
|
|
#endif /* MBEDTLS_ECDH_COMPUTE_SHARED_ALT */
|
2017-10-10 15:28:25 +00:00
|
|
|
#if defined(MBEDTLS_ECDSA_VERIFY_ALT)
|
|
|
|
"MBEDTLS_ECDSA_VERIFY_ALT",
|
|
|
|
#endif /* MBEDTLS_ECDSA_VERIFY_ALT */
|
|
|
|
#if defined(MBEDTLS_ECDSA_SIGN_ALT)
|
|
|
|
"MBEDTLS_ECDSA_SIGN_ALT",
|
|
|
|
#endif /* MBEDTLS_ECDSA_SIGN_ALT */
|
|
|
|
#if defined(MBEDTLS_ECDSA_GENKEY_ALT)
|
|
|
|
"MBEDTLS_ECDSA_GENKEY_ALT",
|
|
|
|
#endif /* MBEDTLS_ECDSA_GENKEY_ALT */
|
2016-11-21 14:53:57 +00:00
|
|
|
#if defined(MBEDTLS_ECP_INTERNAL_ALT)
|
|
|
|
"MBEDTLS_ECP_INTERNAL_ALT",
|
|
|
|
#endif /* MBEDTLS_ECP_INTERNAL_ALT */
|
|
|
|
#if defined(MBEDTLS_ECP_RANDOMIZE_JAC_ALT)
|
|
|
|
"MBEDTLS_ECP_RANDOMIZE_JAC_ALT",
|
|
|
|
#endif /* MBEDTLS_ECP_RANDOMIZE_JAC_ALT */
|
|
|
|
#if defined(MBEDTLS_ECP_ADD_MIXED_ALT)
|
|
|
|
"MBEDTLS_ECP_ADD_MIXED_ALT",
|
|
|
|
#endif /* MBEDTLS_ECP_ADD_MIXED_ALT */
|
|
|
|
#if defined(MBEDTLS_ECP_DOUBLE_JAC_ALT)
|
|
|
|
"MBEDTLS_ECP_DOUBLE_JAC_ALT",
|
|
|
|
#endif /* MBEDTLS_ECP_DOUBLE_JAC_ALT */
|
|
|
|
#if defined(MBEDTLS_ECP_NORMALIZE_JAC_MANY_ALT)
|
|
|
|
"MBEDTLS_ECP_NORMALIZE_JAC_MANY_ALT",
|
|
|
|
#endif /* MBEDTLS_ECP_NORMALIZE_JAC_MANY_ALT */
|
|
|
|
#if defined(MBEDTLS_ECP_NORMALIZE_JAC_ALT)
|
|
|
|
"MBEDTLS_ECP_NORMALIZE_JAC_ALT",
|
|
|
|
#endif /* MBEDTLS_ECP_NORMALIZE_JAC_ALT */
|
|
|
|
#if defined(MBEDTLS_ECP_DOUBLE_ADD_MXZ_ALT)
|
|
|
|
"MBEDTLS_ECP_DOUBLE_ADD_MXZ_ALT",
|
|
|
|
#endif /* MBEDTLS_ECP_DOUBLE_ADD_MXZ_ALT */
|
|
|
|
#if defined(MBEDTLS_ECP_RANDOMIZE_MXZ_ALT)
|
|
|
|
"MBEDTLS_ECP_RANDOMIZE_MXZ_ALT",
|
|
|
|
#endif /* MBEDTLS_ECP_RANDOMIZE_MXZ_ALT */
|
|
|
|
#if defined(MBEDTLS_ECP_NORMALIZE_MXZ_ALT)
|
|
|
|
"MBEDTLS_ECP_NORMALIZE_MXZ_ALT",
|
|
|
|
#endif /* MBEDTLS_ECP_NORMALIZE_MXZ_ALT */
|
2016-06-11 01:31:21 +00:00
|
|
|
#if defined(MBEDTLS_TEST_NULL_ENTROPY)
|
|
|
|
"MBEDTLS_TEST_NULL_ENTROPY",
|
|
|
|
#endif /* MBEDTLS_TEST_NULL_ENTROPY */
|
2015-06-22 10:06:50 +00:00
|
|
|
#if defined(MBEDTLS_ENTROPY_HARDWARE_ALT)
|
|
|
|
"MBEDTLS_ENTROPY_HARDWARE_ALT",
|
|
|
|
#endif /* MBEDTLS_ENTROPY_HARDWARE_ALT */
|
2015-04-08 10:49:31 +00:00
|
|
|
#if defined(MBEDTLS_AES_ROM_TABLES)
|
|
|
|
"MBEDTLS_AES_ROM_TABLES",
|
|
|
|
#endif /* MBEDTLS_AES_ROM_TABLES */
|
2017-06-07 14:52:48 +00:00
|
|
|
#if defined(MBEDTLS_AES_FEWER_TABLES)
|
|
|
|
"MBEDTLS_AES_FEWER_TABLES",
|
|
|
|
#endif /* MBEDTLS_AES_FEWER_TABLES */
|
2015-04-08 10:49:31 +00:00
|
|
|
#if defined(MBEDTLS_CAMELLIA_SMALL_MEMORY)
|
|
|
|
"MBEDTLS_CAMELLIA_SMALL_MEMORY",
|
|
|
|
#endif /* MBEDTLS_CAMELLIA_SMALL_MEMORY */
|
|
|
|
#if defined(MBEDTLS_CIPHER_MODE_CBC)
|
|
|
|
"MBEDTLS_CIPHER_MODE_CBC",
|
|
|
|
#endif /* MBEDTLS_CIPHER_MODE_CBC */
|
|
|
|
#if defined(MBEDTLS_CIPHER_MODE_CFB)
|
|
|
|
"MBEDTLS_CIPHER_MODE_CFB",
|
|
|
|
#endif /* MBEDTLS_CIPHER_MODE_CFB */
|
|
|
|
#if defined(MBEDTLS_CIPHER_MODE_CTR)
|
|
|
|
"MBEDTLS_CIPHER_MODE_CTR",
|
|
|
|
#endif /* MBEDTLS_CIPHER_MODE_CTR */
|
2018-06-14 10:38:50 +00:00
|
|
|
#if defined(MBEDTLS_CIPHER_MODE_OFB)
|
|
|
|
"MBEDTLS_CIPHER_MODE_OFB",
|
|
|
|
#endif /* MBEDTLS_CIPHER_MODE_OFB */
|
|
|
|
#if defined(MBEDTLS_CIPHER_MODE_XTS)
|
|
|
|
"MBEDTLS_CIPHER_MODE_XTS",
|
|
|
|
#endif /* MBEDTLS_CIPHER_MODE_XTS */
|
2015-04-08 10:49:31 +00:00
|
|
|
#if defined(MBEDTLS_CIPHER_NULL_CIPHER)
|
|
|
|
"MBEDTLS_CIPHER_NULL_CIPHER",
|
|
|
|
#endif /* MBEDTLS_CIPHER_NULL_CIPHER */
|
|
|
|
#if defined(MBEDTLS_CIPHER_PADDING_PKCS7)
|
|
|
|
"MBEDTLS_CIPHER_PADDING_PKCS7",
|
|
|
|
#endif /* MBEDTLS_CIPHER_PADDING_PKCS7 */
|
|
|
|
#if defined(MBEDTLS_CIPHER_PADDING_ONE_AND_ZEROS)
|
|
|
|
"MBEDTLS_CIPHER_PADDING_ONE_AND_ZEROS",
|
|
|
|
#endif /* MBEDTLS_CIPHER_PADDING_ONE_AND_ZEROS */
|
|
|
|
#if defined(MBEDTLS_CIPHER_PADDING_ZEROS_AND_LEN)
|
|
|
|
"MBEDTLS_CIPHER_PADDING_ZEROS_AND_LEN",
|
|
|
|
#endif /* MBEDTLS_CIPHER_PADDING_ZEROS_AND_LEN */
|
|
|
|
#if defined(MBEDTLS_CIPHER_PADDING_ZEROS)
|
|
|
|
"MBEDTLS_CIPHER_PADDING_ZEROS",
|
|
|
|
#endif /* MBEDTLS_CIPHER_PADDING_ZEROS */
|
2019-10-03 12:21:14 +00:00
|
|
|
#if defined(MBEDTLS_CTR_DRBG_USE_128_BIT_KEY)
|
|
|
|
"MBEDTLS_CTR_DRBG_USE_128_BIT_KEY",
|
|
|
|
#endif /* MBEDTLS_CTR_DRBG_USE_128_BIT_KEY */
|
2015-04-08 10:49:31 +00:00
|
|
|
#if defined(MBEDTLS_ECP_DP_SECP192R1_ENABLED)
|
|
|
|
"MBEDTLS_ECP_DP_SECP192R1_ENABLED",
|
|
|
|
#endif /* MBEDTLS_ECP_DP_SECP192R1_ENABLED */
|
|
|
|
#if defined(MBEDTLS_ECP_DP_SECP224R1_ENABLED)
|
|
|
|
"MBEDTLS_ECP_DP_SECP224R1_ENABLED",
|
|
|
|
#endif /* MBEDTLS_ECP_DP_SECP224R1_ENABLED */
|
|
|
|
#if defined(MBEDTLS_ECP_DP_SECP256R1_ENABLED)
|
|
|
|
"MBEDTLS_ECP_DP_SECP256R1_ENABLED",
|
|
|
|
#endif /* MBEDTLS_ECP_DP_SECP256R1_ENABLED */
|
|
|
|
#if defined(MBEDTLS_ECP_DP_SECP384R1_ENABLED)
|
|
|
|
"MBEDTLS_ECP_DP_SECP384R1_ENABLED",
|
|
|
|
#endif /* MBEDTLS_ECP_DP_SECP384R1_ENABLED */
|
|
|
|
#if defined(MBEDTLS_ECP_DP_SECP521R1_ENABLED)
|
|
|
|
"MBEDTLS_ECP_DP_SECP521R1_ENABLED",
|
|
|
|
#endif /* MBEDTLS_ECP_DP_SECP521R1_ENABLED */
|
|
|
|
#if defined(MBEDTLS_ECP_DP_SECP192K1_ENABLED)
|
|
|
|
"MBEDTLS_ECP_DP_SECP192K1_ENABLED",
|
|
|
|
#endif /* MBEDTLS_ECP_DP_SECP192K1_ENABLED */
|
|
|
|
#if defined(MBEDTLS_ECP_DP_SECP224K1_ENABLED)
|
|
|
|
"MBEDTLS_ECP_DP_SECP224K1_ENABLED",
|
|
|
|
#endif /* MBEDTLS_ECP_DP_SECP224K1_ENABLED */
|
|
|
|
#if defined(MBEDTLS_ECP_DP_SECP256K1_ENABLED)
|
|
|
|
"MBEDTLS_ECP_DP_SECP256K1_ENABLED",
|
|
|
|
#endif /* MBEDTLS_ECP_DP_SECP256K1_ENABLED */
|
|
|
|
#if defined(MBEDTLS_ECP_DP_BP256R1_ENABLED)
|
|
|
|
"MBEDTLS_ECP_DP_BP256R1_ENABLED",
|
|
|
|
#endif /* MBEDTLS_ECP_DP_BP256R1_ENABLED */
|
|
|
|
#if defined(MBEDTLS_ECP_DP_BP384R1_ENABLED)
|
|
|
|
"MBEDTLS_ECP_DP_BP384R1_ENABLED",
|
|
|
|
#endif /* MBEDTLS_ECP_DP_BP384R1_ENABLED */
|
|
|
|
#if defined(MBEDTLS_ECP_DP_BP512R1_ENABLED)
|
|
|
|
"MBEDTLS_ECP_DP_BP512R1_ENABLED",
|
|
|
|
#endif /* MBEDTLS_ECP_DP_BP512R1_ENABLED */
|
2015-06-22 22:18:41 +00:00
|
|
|
#if defined(MBEDTLS_ECP_DP_CURVE25519_ENABLED)
|
|
|
|
"MBEDTLS_ECP_DP_CURVE25519_ENABLED",
|
|
|
|
#endif /* MBEDTLS_ECP_DP_CURVE25519_ENABLED */
|
2015-11-10 13:10:01 +00:00
|
|
|
#if defined(MBEDTLS_ECP_DP_CURVE448_ENABLED)
|
|
|
|
"MBEDTLS_ECP_DP_CURVE448_ENABLED",
|
|
|
|
#endif /* MBEDTLS_ECP_DP_CURVE448_ENABLED */
|
2015-04-08 10:49:31 +00:00
|
|
|
#if defined(MBEDTLS_ECP_NIST_OPTIM)
|
|
|
|
"MBEDTLS_ECP_NIST_OPTIM",
|
|
|
|
#endif /* MBEDTLS_ECP_NIST_OPTIM */
|
2017-04-20 13:50:26 +00:00
|
|
|
#if defined(MBEDTLS_ECP_RESTARTABLE)
|
|
|
|
"MBEDTLS_ECP_RESTARTABLE",
|
|
|
|
#endif /* MBEDTLS_ECP_RESTARTABLE */
|
2019-02-22 11:14:02 +00:00
|
|
|
#if defined(MBEDTLS_ECDH_LEGACY_CONTEXT)
|
|
|
|
"MBEDTLS_ECDH_LEGACY_CONTEXT",
|
|
|
|
#endif /* MBEDTLS_ECDH_LEGACY_CONTEXT */
|
2015-04-08 10:49:31 +00:00
|
|
|
#if defined(MBEDTLS_ECDSA_DETERMINISTIC)
|
|
|
|
"MBEDTLS_ECDSA_DETERMINISTIC",
|
|
|
|
#endif /* MBEDTLS_ECDSA_DETERMINISTIC */
|
|
|
|
#if defined(MBEDTLS_PK_PARSE_EC_EXTENDED)
|
|
|
|
"MBEDTLS_PK_PARSE_EC_EXTENDED",
|
|
|
|
#endif /* MBEDTLS_PK_PARSE_EC_EXTENDED */
|
|
|
|
#if defined(MBEDTLS_ERROR_STRERROR_DUMMY)
|
|
|
|
"MBEDTLS_ERROR_STRERROR_DUMMY",
|
|
|
|
#endif /* MBEDTLS_ERROR_STRERROR_DUMMY */
|
|
|
|
#if defined(MBEDTLS_GENPRIME)
|
|
|
|
"MBEDTLS_GENPRIME",
|
|
|
|
#endif /* MBEDTLS_GENPRIME */
|
|
|
|
#if defined(MBEDTLS_FS_IO)
|
|
|
|
"MBEDTLS_FS_IO",
|
|
|
|
#endif /* MBEDTLS_FS_IO */
|
|
|
|
#if defined(MBEDTLS_NO_DEFAULT_ENTROPY_SOURCES)
|
|
|
|
"MBEDTLS_NO_DEFAULT_ENTROPY_SOURCES",
|
|
|
|
#endif /* MBEDTLS_NO_DEFAULT_ENTROPY_SOURCES */
|
|
|
|
#if defined(MBEDTLS_NO_PLATFORM_ENTROPY)
|
|
|
|
"MBEDTLS_NO_PLATFORM_ENTROPY",
|
|
|
|
#endif /* MBEDTLS_NO_PLATFORM_ENTROPY */
|
|
|
|
#if defined(MBEDTLS_ENTROPY_FORCE_SHA256)
|
|
|
|
"MBEDTLS_ENTROPY_FORCE_SHA256",
|
|
|
|
#endif /* MBEDTLS_ENTROPY_FORCE_SHA256 */
|
2016-06-01 14:58:12 +00:00
|
|
|
#if defined(MBEDTLS_ENTROPY_NV_SEED)
|
|
|
|
"MBEDTLS_ENTROPY_NV_SEED",
|
|
|
|
#endif /* MBEDTLS_ENTROPY_NV_SEED */
|
2019-02-19 13:00:31 +00:00
|
|
|
#if defined(MBEDTLS_PSA_CRYPTO_KEY_FILE_ID_ENCODES_OWNER)
|
|
|
|
"MBEDTLS_PSA_CRYPTO_KEY_FILE_ID_ENCODES_OWNER",
|
|
|
|
#endif /* MBEDTLS_PSA_CRYPTO_KEY_FILE_ID_ENCODES_OWNER */
|
2015-04-08 10:49:31 +00:00
|
|
|
#if defined(MBEDTLS_MEMORY_DEBUG)
|
|
|
|
"MBEDTLS_MEMORY_DEBUG",
|
|
|
|
#endif /* MBEDTLS_MEMORY_DEBUG */
|
|
|
|
#if defined(MBEDTLS_MEMORY_BACKTRACE)
|
|
|
|
"MBEDTLS_MEMORY_BACKTRACE",
|
|
|
|
#endif /* MBEDTLS_MEMORY_BACKTRACE */
|
|
|
|
#if defined(MBEDTLS_PK_RSA_ALT_SUPPORT)
|
|
|
|
"MBEDTLS_PK_RSA_ALT_SUPPORT",
|
|
|
|
#endif /* MBEDTLS_PK_RSA_ALT_SUPPORT */
|
|
|
|
#if defined(MBEDTLS_PKCS1_V15)
|
|
|
|
"MBEDTLS_PKCS1_V15",
|
|
|
|
#endif /* MBEDTLS_PKCS1_V15 */
|
|
|
|
#if defined(MBEDTLS_PKCS1_V21)
|
|
|
|
"MBEDTLS_PKCS1_V21",
|
|
|
|
#endif /* MBEDTLS_PKCS1_V21 */
|
2018-07-11 15:07:40 +00:00
|
|
|
#if defined(MBEDTLS_PSA_CRYPTO_SPM)
|
|
|
|
"MBEDTLS_PSA_CRYPTO_SPM",
|
|
|
|
#endif /* MBEDTLS_PSA_CRYPTO_SPM */
|
2019-02-25 10:04:06 +00:00
|
|
|
#if defined(MBEDTLS_PSA_INJECT_ENTROPY)
|
|
|
|
"MBEDTLS_PSA_INJECT_ENTROPY",
|
|
|
|
#endif /* MBEDTLS_PSA_INJECT_ENTROPY */
|
2015-04-08 10:49:31 +00:00
|
|
|
#if defined(MBEDTLS_RSA_NO_CRT)
|
|
|
|
"MBEDTLS_RSA_NO_CRT",
|
|
|
|
#endif /* MBEDTLS_RSA_NO_CRT */
|
|
|
|
#if defined(MBEDTLS_SELF_TEST)
|
|
|
|
"MBEDTLS_SELF_TEST",
|
|
|
|
#endif /* MBEDTLS_SELF_TEST */
|
2015-05-28 10:54:04 +00:00
|
|
|
#if defined(MBEDTLS_SHA256_SMALLER)
|
|
|
|
"MBEDTLS_SHA256_SMALLER",
|
|
|
|
#endif /* MBEDTLS_SHA256_SMALLER */
|
2019-07-17 10:36:53 +00:00
|
|
|
#if defined(MBEDTLS_SHA512_SMALLER)
|
|
|
|
"MBEDTLS_SHA512_SMALLER",
|
|
|
|
#endif /* MBEDTLS_SHA512_SMALLER */
|
2019-07-17 12:58:03 +00:00
|
|
|
#if defined(MBEDTLS_SHA512_NO_SHA384)
|
|
|
|
"MBEDTLS_SHA512_NO_SHA384",
|
|
|
|
#endif /* MBEDTLS_SHA512_NO_SHA384 */
|
2015-04-08 10:49:31 +00:00
|
|
|
#if defined(MBEDTLS_THREADING_ALT)
|
|
|
|
"MBEDTLS_THREADING_ALT",
|
|
|
|
#endif /* MBEDTLS_THREADING_ALT */
|
|
|
|
#if defined(MBEDTLS_THREADING_PTHREAD)
|
|
|
|
"MBEDTLS_THREADING_PTHREAD",
|
|
|
|
#endif /* MBEDTLS_THREADING_PTHREAD */
|
2018-10-22 10:14:52 +00:00
|
|
|
#if defined(MBEDTLS_USE_PSA_CRYPTO)
|
|
|
|
"MBEDTLS_USE_PSA_CRYPTO",
|
|
|
|
#endif /* MBEDTLS_USE_PSA_CRYPTO */
|
2015-04-08 10:49:31 +00:00
|
|
|
#if defined(MBEDTLS_VERSION_FEATURES)
|
|
|
|
"MBEDTLS_VERSION_FEATURES",
|
|
|
|
#endif /* MBEDTLS_VERSION_FEATURES */
|
2020-02-26 17:33:58 +00:00
|
|
|
#if defined(MBEDTLS_X509_ALLOW_EXTENSIONS_NON_V3)
|
|
|
|
"MBEDTLS_X509_ALLOW_EXTENSIONS_NON_V3",
|
|
|
|
#endif /* MBEDTLS_X509_ALLOW_EXTENSIONS_NON_V3 */
|
|
|
|
#if defined(MBEDTLS_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION)
|
|
|
|
"MBEDTLS_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION",
|
|
|
|
#endif /* MBEDTLS_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION */
|
|
|
|
#if defined(MBEDTLS_X509_TRUSTED_CERTIFICATE_CALLBACK)
|
|
|
|
"MBEDTLS_X509_TRUSTED_CERTIFICATE_CALLBACK",
|
|
|
|
#endif /* MBEDTLS_X509_TRUSTED_CERTIFICATE_CALLBACK */
|
|
|
|
#if defined(MBEDTLS_X509_CHECK_KEY_USAGE)
|
|
|
|
"MBEDTLS_X509_CHECK_KEY_USAGE",
|
|
|
|
#endif /* MBEDTLS_X509_CHECK_KEY_USAGE */
|
|
|
|
#if defined(MBEDTLS_X509_CHECK_EXTENDED_KEY_USAGE)
|
|
|
|
"MBEDTLS_X509_CHECK_EXTENDED_KEY_USAGE",
|
|
|
|
#endif /* MBEDTLS_X509_CHECK_EXTENDED_KEY_USAGE */
|
|
|
|
#if defined(MBEDTLS_X509_RSASSA_PSS_SUPPORT)
|
|
|
|
"MBEDTLS_X509_RSASSA_PSS_SUPPORT",
|
|
|
|
#endif /* MBEDTLS_X509_RSASSA_PSS_SUPPORT */
|
2015-04-08 10:49:31 +00:00
|
|
|
#if defined(MBEDTLS_AESNI_C)
|
|
|
|
"MBEDTLS_AESNI_C",
|
|
|
|
#endif /* MBEDTLS_AESNI_C */
|
|
|
|
#if defined(MBEDTLS_AES_C)
|
|
|
|
"MBEDTLS_AES_C",
|
|
|
|
#endif /* MBEDTLS_AES_C */
|
|
|
|
#if defined(MBEDTLS_ARC4_C)
|
|
|
|
"MBEDTLS_ARC4_C",
|
|
|
|
#endif /* MBEDTLS_ARC4_C */
|
|
|
|
#if defined(MBEDTLS_ASN1_PARSE_C)
|
|
|
|
"MBEDTLS_ASN1_PARSE_C",
|
|
|
|
#endif /* MBEDTLS_ASN1_PARSE_C */
|
|
|
|
#if defined(MBEDTLS_ASN1_WRITE_C)
|
|
|
|
"MBEDTLS_ASN1_WRITE_C",
|
|
|
|
#endif /* MBEDTLS_ASN1_WRITE_C */
|
|
|
|
#if defined(MBEDTLS_BASE64_C)
|
|
|
|
"MBEDTLS_BASE64_C",
|
|
|
|
#endif /* MBEDTLS_BASE64_C */
|
|
|
|
#if defined(MBEDTLS_BIGNUM_C)
|
|
|
|
"MBEDTLS_BIGNUM_C",
|
|
|
|
#endif /* MBEDTLS_BIGNUM_C */
|
|
|
|
#if defined(MBEDTLS_BLOWFISH_C)
|
|
|
|
"MBEDTLS_BLOWFISH_C",
|
|
|
|
#endif /* MBEDTLS_BLOWFISH_C */
|
|
|
|
#if defined(MBEDTLS_CAMELLIA_C)
|
|
|
|
"MBEDTLS_CAMELLIA_C",
|
|
|
|
#endif /* MBEDTLS_CAMELLIA_C */
|
2017-11-30 16:00:34 +00:00
|
|
|
#if defined(MBEDTLS_ARIA_C)
|
|
|
|
"MBEDTLS_ARIA_C",
|
|
|
|
#endif /* MBEDTLS_ARIA_C */
|
2015-04-08 10:49:31 +00:00
|
|
|
#if defined(MBEDTLS_CCM_C)
|
|
|
|
"MBEDTLS_CCM_C",
|
|
|
|
#endif /* MBEDTLS_CCM_C */
|
2020-02-26 17:33:58 +00:00
|
|
|
#if defined(MBEDTLS_CERTS_C)
|
|
|
|
"MBEDTLS_CERTS_C",
|
|
|
|
#endif /* MBEDTLS_CERTS_C */
|
2016-05-15 20:28:08 +00:00
|
|
|
#if defined(MBEDTLS_CHACHA20_C)
|
|
|
|
"MBEDTLS_CHACHA20_C",
|
|
|
|
#endif /* MBEDTLS_CHACHA20_C */
|
2018-06-04 10:42:17 +00:00
|
|
|
#if defined(MBEDTLS_CHACHAPOLY_C)
|
|
|
|
"MBEDTLS_CHACHAPOLY_C",
|
|
|
|
#endif /* MBEDTLS_CHACHAPOLY_C */
|
2015-04-08 10:49:31 +00:00
|
|
|
#if defined(MBEDTLS_CIPHER_C)
|
|
|
|
"MBEDTLS_CIPHER_C",
|
|
|
|
#endif /* MBEDTLS_CIPHER_C */
|
2015-12-14 17:34:33 +00:00
|
|
|
#if defined(MBEDTLS_CMAC_C)
|
|
|
|
"MBEDTLS_CMAC_C",
|
|
|
|
#endif /* MBEDTLS_CMAC_C */
|
2015-04-08 10:49:31 +00:00
|
|
|
#if defined(MBEDTLS_CTR_DRBG_C)
|
|
|
|
"MBEDTLS_CTR_DRBG_C",
|
|
|
|
#endif /* MBEDTLS_CTR_DRBG_C */
|
|
|
|
#if defined(MBEDTLS_DES_C)
|
|
|
|
"MBEDTLS_DES_C",
|
|
|
|
#endif /* MBEDTLS_DES_C */
|
|
|
|
#if defined(MBEDTLS_DHM_C)
|
|
|
|
"MBEDTLS_DHM_C",
|
|
|
|
#endif /* MBEDTLS_DHM_C */
|
|
|
|
#if defined(MBEDTLS_ECDH_C)
|
|
|
|
"MBEDTLS_ECDH_C",
|
|
|
|
#endif /* MBEDTLS_ECDH_C */
|
|
|
|
#if defined(MBEDTLS_ECDSA_C)
|
|
|
|
"MBEDTLS_ECDSA_C",
|
|
|
|
#endif /* MBEDTLS_ECDSA_C */
|
2015-08-05 13:44:42 +00:00
|
|
|
#if defined(MBEDTLS_ECJPAKE_C)
|
|
|
|
"MBEDTLS_ECJPAKE_C",
|
|
|
|
#endif /* MBEDTLS_ECJPAKE_C */
|
2015-04-08 10:49:31 +00:00
|
|
|
#if defined(MBEDTLS_ECP_C)
|
|
|
|
"MBEDTLS_ECP_C",
|
|
|
|
#endif /* MBEDTLS_ECP_C */
|
|
|
|
#if defined(MBEDTLS_ENTROPY_C)
|
|
|
|
"MBEDTLS_ENTROPY_C",
|
|
|
|
#endif /* MBEDTLS_ENTROPY_C */
|
|
|
|
#if defined(MBEDTLS_ERROR_C)
|
|
|
|
"MBEDTLS_ERROR_C",
|
|
|
|
#endif /* MBEDTLS_ERROR_C */
|
|
|
|
#if defined(MBEDTLS_GCM_C)
|
|
|
|
"MBEDTLS_GCM_C",
|
|
|
|
#endif /* MBEDTLS_GCM_C */
|
|
|
|
#if defined(MBEDTLS_HAVEGE_C)
|
|
|
|
"MBEDTLS_HAVEGE_C",
|
|
|
|
#endif /* MBEDTLS_HAVEGE_C */
|
2016-07-17 07:51:22 +00:00
|
|
|
#if defined(MBEDTLS_HKDF_C)
|
|
|
|
"MBEDTLS_HKDF_C",
|
|
|
|
#endif /* MBEDTLS_HKDF_C */
|
2015-04-08 10:49:31 +00:00
|
|
|
#if defined(MBEDTLS_HMAC_DRBG_C)
|
|
|
|
"MBEDTLS_HMAC_DRBG_C",
|
|
|
|
#endif /* MBEDTLS_HMAC_DRBG_C */
|
2018-05-03 13:54:28 +00:00
|
|
|
#if defined(MBEDTLS_NIST_KW_C)
|
|
|
|
"MBEDTLS_NIST_KW_C",
|
|
|
|
#endif /* MBEDTLS_NIST_KW_C */
|
2015-04-08 10:49:31 +00:00
|
|
|
#if defined(MBEDTLS_MD_C)
|
|
|
|
"MBEDTLS_MD_C",
|
|
|
|
#endif /* MBEDTLS_MD_C */
|
|
|
|
#if defined(MBEDTLS_MD2_C)
|
|
|
|
"MBEDTLS_MD2_C",
|
|
|
|
#endif /* MBEDTLS_MD2_C */
|
|
|
|
#if defined(MBEDTLS_MD4_C)
|
|
|
|
"MBEDTLS_MD4_C",
|
|
|
|
#endif /* MBEDTLS_MD4_C */
|
|
|
|
#if defined(MBEDTLS_MD5_C)
|
|
|
|
"MBEDTLS_MD5_C",
|
|
|
|
#endif /* MBEDTLS_MD5_C */
|
|
|
|
#if defined(MBEDTLS_MEMORY_BUFFER_ALLOC_C)
|
|
|
|
"MBEDTLS_MEMORY_BUFFER_ALLOC_C",
|
|
|
|
#endif /* MBEDTLS_MEMORY_BUFFER_ALLOC_C */
|
|
|
|
#if defined(MBEDTLS_OID_C)
|
|
|
|
"MBEDTLS_OID_C",
|
|
|
|
#endif /* MBEDTLS_OID_C */
|
|
|
|
#if defined(MBEDTLS_PADLOCK_C)
|
|
|
|
"MBEDTLS_PADLOCK_C",
|
|
|
|
#endif /* MBEDTLS_PADLOCK_C */
|
|
|
|
#if defined(MBEDTLS_PEM_PARSE_C)
|
|
|
|
"MBEDTLS_PEM_PARSE_C",
|
|
|
|
#endif /* MBEDTLS_PEM_PARSE_C */
|
|
|
|
#if defined(MBEDTLS_PEM_WRITE_C)
|
|
|
|
"MBEDTLS_PEM_WRITE_C",
|
|
|
|
#endif /* MBEDTLS_PEM_WRITE_C */
|
|
|
|
#if defined(MBEDTLS_PK_C)
|
|
|
|
"MBEDTLS_PK_C",
|
|
|
|
#endif /* MBEDTLS_PK_C */
|
|
|
|
#if defined(MBEDTLS_PK_PARSE_C)
|
|
|
|
"MBEDTLS_PK_PARSE_C",
|
|
|
|
#endif /* MBEDTLS_PK_PARSE_C */
|
|
|
|
#if defined(MBEDTLS_PK_WRITE_C)
|
|
|
|
"MBEDTLS_PK_WRITE_C",
|
|
|
|
#endif /* MBEDTLS_PK_WRITE_C */
|
|
|
|
#if defined(MBEDTLS_PKCS5_C)
|
|
|
|
"MBEDTLS_PKCS5_C",
|
|
|
|
#endif /* MBEDTLS_PKCS5_C */
|
2020-02-26 17:33:58 +00:00
|
|
|
#if defined(MBEDTLS_PKCS11_C)
|
|
|
|
"MBEDTLS_PKCS11_C",
|
|
|
|
#endif /* MBEDTLS_PKCS11_C */
|
2015-04-08 10:49:31 +00:00
|
|
|
#if defined(MBEDTLS_PKCS12_C)
|
|
|
|
"MBEDTLS_PKCS12_C",
|
|
|
|
#endif /* MBEDTLS_PKCS12_C */
|
|
|
|
#if defined(MBEDTLS_PLATFORM_C)
|
|
|
|
"MBEDTLS_PLATFORM_C",
|
|
|
|
#endif /* MBEDTLS_PLATFORM_C */
|
2016-05-16 21:25:45 +00:00
|
|
|
#if defined(MBEDTLS_POLY1305_C)
|
|
|
|
"MBEDTLS_POLY1305_C",
|
|
|
|
#endif /* MBEDTLS_POLY1305_C */
|
2018-01-27 22:32:46 +00:00
|
|
|
#if defined(MBEDTLS_PSA_CRYPTO_C)
|
|
|
|
"MBEDTLS_PSA_CRYPTO_C",
|
|
|
|
#endif /* MBEDTLS_PSA_CRYPTO_C */
|
2019-06-26 09:24:49 +00:00
|
|
|
#if defined(MBEDTLS_PSA_CRYPTO_SE_C)
|
|
|
|
"MBEDTLS_PSA_CRYPTO_SE_C",
|
|
|
|
#endif /* MBEDTLS_PSA_CRYPTO_SE_C */
|
2018-06-15 12:06:04 +00:00
|
|
|
#if defined(MBEDTLS_PSA_CRYPTO_STORAGE_C)
|
|
|
|
"MBEDTLS_PSA_CRYPTO_STORAGE_C",
|
|
|
|
#endif /* MBEDTLS_PSA_CRYPTO_STORAGE_C */
|
2018-11-16 21:24:15 +00:00
|
|
|
#if defined(MBEDTLS_PSA_ITS_FILE_C)
|
|
|
|
"MBEDTLS_PSA_ITS_FILE_C",
|
|
|
|
#endif /* MBEDTLS_PSA_ITS_FILE_C */
|
2015-04-08 10:49:31 +00:00
|
|
|
#if defined(MBEDTLS_RIPEMD160_C)
|
|
|
|
"MBEDTLS_RIPEMD160_C",
|
|
|
|
#endif /* MBEDTLS_RIPEMD160_C */
|
|
|
|
#if defined(MBEDTLS_RSA_C)
|
|
|
|
"MBEDTLS_RSA_C",
|
|
|
|
#endif /* MBEDTLS_RSA_C */
|
|
|
|
#if defined(MBEDTLS_SHA1_C)
|
|
|
|
"MBEDTLS_SHA1_C",
|
|
|
|
#endif /* MBEDTLS_SHA1_C */
|
|
|
|
#if defined(MBEDTLS_SHA256_C)
|
|
|
|
"MBEDTLS_SHA256_C",
|
|
|
|
#endif /* MBEDTLS_SHA256_C */
|
|
|
|
#if defined(MBEDTLS_SHA512_C)
|
|
|
|
"MBEDTLS_SHA512_C",
|
|
|
|
#endif /* MBEDTLS_SHA512_C */
|
|
|
|
#if defined(MBEDTLS_THREADING_C)
|
|
|
|
"MBEDTLS_THREADING_C",
|
|
|
|
#endif /* MBEDTLS_THREADING_C */
|
|
|
|
#if defined(MBEDTLS_TIMING_C)
|
|
|
|
"MBEDTLS_TIMING_C",
|
|
|
|
#endif /* MBEDTLS_TIMING_C */
|
|
|
|
#if defined(MBEDTLS_VERSION_C)
|
|
|
|
"MBEDTLS_VERSION_C",
|
|
|
|
#endif /* MBEDTLS_VERSION_C */
|
2020-02-26 17:33:58 +00:00
|
|
|
#if defined(MBEDTLS_X509_USE_C)
|
|
|
|
"MBEDTLS_X509_USE_C",
|
|
|
|
#endif /* MBEDTLS_X509_USE_C */
|
|
|
|
#if defined(MBEDTLS_X509_CRT_PARSE_C)
|
|
|
|
"MBEDTLS_X509_CRT_PARSE_C",
|
|
|
|
#endif /* MBEDTLS_X509_CRT_PARSE_C */
|
|
|
|
#if defined(MBEDTLS_X509_CRL_PARSE_C)
|
|
|
|
"MBEDTLS_X509_CRL_PARSE_C",
|
|
|
|
#endif /* MBEDTLS_X509_CRL_PARSE_C */
|
|
|
|
#if defined(MBEDTLS_X509_CSR_PARSE_C)
|
|
|
|
"MBEDTLS_X509_CSR_PARSE_C",
|
|
|
|
#endif /* MBEDTLS_X509_CSR_PARSE_C */
|
|
|
|
#if defined(MBEDTLS_X509_CREATE_C)
|
|
|
|
"MBEDTLS_X509_CREATE_C",
|
|
|
|
#endif /* MBEDTLS_X509_CREATE_C */
|
|
|
|
#if defined(MBEDTLS_X509_CRT_WRITE_C)
|
|
|
|
"MBEDTLS_X509_CRT_WRITE_C",
|
|
|
|
#endif /* MBEDTLS_X509_CRT_WRITE_C */
|
|
|
|
#if defined(MBEDTLS_X509_CSR_WRITE_C)
|
|
|
|
"MBEDTLS_X509_CSR_WRITE_C",
|
|
|
|
#endif /* MBEDTLS_X509_CSR_WRITE_C */
|
2015-04-08 10:49:31 +00:00
|
|
|
#if defined(MBEDTLS_XTEA_C)
|
|
|
|
"MBEDTLS_XTEA_C",
|
|
|
|
#endif /* MBEDTLS_XTEA_C */
|
|
|
|
#endif /* MBEDTLS_VERSION_FEATURES */
|
2014-04-30 09:49:44 +00:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
2015-04-08 10:49:31 +00:00
|
|
|
int mbedtls_version_check_feature( const char *feature )
|
2014-04-30 09:49:44 +00:00
|
|
|
{
|
2019-06-12 10:26:37 +00:00
|
|
|
const char * const *idx = features;
|
2014-04-30 09:49:44 +00:00
|
|
|
|
2014-04-30 15:01:25 +00:00
|
|
|
if( *idx == NULL )
|
|
|
|
return( -2 );
|
|
|
|
|
2014-04-30 09:49:44 +00:00
|
|
|
if( feature == NULL )
|
|
|
|
return( -1 );
|
|
|
|
|
|
|
|
while( *idx != NULL )
|
|
|
|
{
|
2015-05-28 15:06:07 +00:00
|
|
|
if( !strcmp( *idx, feature ) )
|
2014-04-30 09:49:44 +00:00
|
|
|
return( 0 );
|
|
|
|
idx++;
|
|
|
|
}
|
|
|
|
return( -1 );
|
|
|
|
}
|
|
|
|
|
2015-04-08 10:49:31 +00:00
|
|
|
#endif /* MBEDTLS_VERSION_C */
|