/mbedtls-3.6.0/programs/test/ |
D | query_config.c | 57 #if defined(MBEDTLS_HAVE_TIME) 96 #if defined(_MSC_VER) 111 #if defined(MBEDTLS_CONFIG_VERSION) in query_config() 112 if( strcmp( "MBEDTLS_CONFIG_VERSION", config ) == 0 ) in query_config() 119 #if defined(MBEDTLS_HAVE_ASM) in query_config() 120 if( strcmp( "MBEDTLS_HAVE_ASM", config ) == 0 ) in query_config() 127 #if defined(MBEDTLS_NO_UDBL_DIVISION) in query_config() 128 if( strcmp( "MBEDTLS_NO_UDBL_DIVISION", config ) == 0 ) in query_config() 135 #if defined(MBEDTLS_NO_64BIT_MULTIPLICATION) in query_config() 136 if( strcmp( "MBEDTLS_NO_64BIT_MULTIPLICATION", config ) == 0 ) in query_config() [all …]
|
D | selftest.c | 48 #if defined(MBEDTLS_MEMORY_BUFFER_ALLOC_C) 53 #if defined MBEDTLS_SELF_TEST 69 if (empty1 == NULL && empty2 == NULL) { in calloc_self_test() 70 if (verbose) { in calloc_self_test() 73 } else if (empty1 == NULL || empty2 == NULL) { in calloc_self_test() 74 if (verbose) { in calloc_self_test() 78 } else if (empty1 == empty2) { in calloc_self_test() 79 if (verbose) { in calloc_self_test() 83 if (verbose) { in calloc_self_test() 93 if (empty1 == NULL && empty2 == NULL) { in calloc_self_test() [all …]
|
/mbedtls-3.6.0/tests/include/test/drivers/ |
D | crypto_config_test_driver_extension.h | 11 #if defined(PSA_WANT_ALG_CBC_NO_PADDING) 12 #if defined(MBEDTLS_PSA_ACCEL_ALG_CBC_NO_PADDING) 19 #if defined(PSA_WANT_ALG_CBC_PKCS7) 20 #if defined(MBEDTLS_PSA_ACCEL_ALG_CBC_PKCS7) 27 #if defined(PSA_WANT_ALG_CFB) 28 #if defined(MBEDTLS_PSA_ACCEL_ALG_CFB) 35 #if defined(PSA_WANT_ALG_CTR) 36 #if defined(MBEDTLS_PSA_ACCEL_ALG_CTR) 43 #if defined(PSA_WANT_ALG_DETERMINISTIC_ECDSA) 44 #if defined(MBEDTLS_PSA_ACCEL_ALG_DETERMINISTIC_ECDSA) [all …]
|
/mbedtls-3.6.0/library/ |
D | version_features.c | 10 #if defined(MBEDTLS_VERSION_C) 17 #if defined(MBEDTLS_VERSION_FEATURES) 18 #if defined(MBEDTLS_HAVE_ASM) 21 #if defined(MBEDTLS_NO_UDBL_DIVISION) 24 #if defined(MBEDTLS_NO_64BIT_MULTIPLICATION) 27 #if defined(MBEDTLS_HAVE_SSE2) 30 #if defined(MBEDTLS_HAVE_TIME) 33 #if defined(MBEDTLS_HAVE_TIME_DATE) 36 #if defined(MBEDTLS_PLATFORM_MEMORY) 39 #if defined(MBEDTLS_PLATFORM_NO_STD_FUNCTIONS) [all …]
|
D | md.c | 30 #if defined(MBEDTLS_MD_LIGHT) 44 #if defined(MBEDTLS_PSA_CRYPTO_C) 50 #if defined(MBEDTLS_MD_SOME_PSA) 58 #if defined(MBEDTLS_FS_IO) 63 #if defined(MBEDTLS_PSA_CRYPTO_C) && MBEDTLS_MD_MAX_SIZE < PSA_HASH_MAX_SIZE 67 #if defined(MBEDTLS_MD_C) 73 #if defined(MBEDTLS_MD_CAN_MD5) 79 #if defined(MBEDTLS_MD_CAN_RIPEMD160) 85 #if defined(MBEDTLS_MD_CAN_SHA1) 91 #if defined(MBEDTLS_MD_CAN_SHA224) [all …]
|
D | cipher_wrap.c | 14 #if defined(MBEDTLS_CIPHER_C) 19 #if defined(MBEDTLS_CHACHAPOLY_C) 23 #if defined(MBEDTLS_AES_C) 27 #if defined(MBEDTLS_CAMELLIA_C) 31 #if defined(MBEDTLS_ARIA_C) 35 #if defined(MBEDTLS_DES_C) 39 #if defined(MBEDTLS_CHACHA20_C) 43 #if defined(MBEDTLS_GCM_C) 47 #if defined(MBEDTLS_CCM_C) 51 #if defined(MBEDTLS_NIST_KW_C) [all …]
|
D | ssl_ciphersuites.c | 12 #if defined(MBEDTLS_SSL_TLS_C) 19 #if defined(MBEDTLS_USE_PSA_CRYPTO) 39 #if defined(MBEDTLS_SSL_CIPHERSUITES) 42 #if defined(MBEDTLS_SSL_PROTO_TLS1_3) 282 #if defined(MBEDTLS_SSL_PROTO_TLS1_3) 283 #if defined(MBEDTLS_AES_C) 284 #if defined(MBEDTLS_GCM_C) 285 #if defined(MBEDTLS_MD_CAN_SHA384) 292 #if defined(MBEDTLS_MD_CAN_SHA256) 300 #if defined(MBEDTLS_CCM_C) && defined(MBEDTLS_MD_CAN_SHA256) [all …]
|
D | ssl_tls.c | 14 #if defined(MBEDTLS_SSL_TLS_C) 31 #if defined(MBEDTLS_USE_PSA_CRYPTO) 37 #if defined(MBEDTLS_X509_CRT_PARSE_C) 41 #if defined(MBEDTLS_USE_PSA_CRYPTO) 53 #if defined(MBEDTLS_TEST_HOOKS) 77 #if defined(MBEDTLS_SSL_PROTO_DTLS) 79 #if defined(MBEDTLS_SSL_DTLS_CONNECTION_ID) 86 if (len > MBEDTLS_SSL_CID_IN_LEN_MAX) { in mbedtls_ssl_conf_cid() 90 if (ignore_other_cid != MBEDTLS_SSL_UNEXPECTED_CID_FAIL && in mbedtls_ssl_conf_cid() 105 if (ssl->conf->transport != MBEDTLS_SSL_TRANSPORT_DATAGRAM) { in mbedtls_ssl_set_cid() [all …]
|
D | psa_crypto_hash.c | 11 #if defined(MBEDTLS_PSA_CRYPTO_C) 20 #if defined(MBEDTLS_PSA_BUILTIN_HASH) 30 #if defined(MBEDTLS_PSA_BUILTIN_ALG_MD5) in mbedtls_psa_hash_abort() 35 #if defined(MBEDTLS_PSA_BUILTIN_ALG_RIPEMD160) in mbedtls_psa_hash_abort() 40 #if defined(MBEDTLS_PSA_BUILTIN_ALG_SHA_1) in mbedtls_psa_hash_abort() 45 #if defined(MBEDTLS_PSA_BUILTIN_ALG_SHA_224) in mbedtls_psa_hash_abort() 50 #if defined(MBEDTLS_PSA_BUILTIN_ALG_SHA_256) in mbedtls_psa_hash_abort() 55 #if defined(MBEDTLS_PSA_BUILTIN_ALG_SHA_384) in mbedtls_psa_hash_abort() 60 #if defined(MBEDTLS_PSA_BUILTIN_ALG_SHA_512) in mbedtls_psa_hash_abort() 65 #if defined(MBEDTLS_PSA_BUILTIN_ALG_SHA3_224) in mbedtls_psa_hash_abort() [all …]
|
D | pkparse.c | 10 #if defined(MBEDTLS_PK_PARSE_C) 21 #if defined(MBEDTLS_RSA_C) 25 #if defined(MBEDTLS_PK_HAVE_ECC_KEYS) 28 #if defined(MBEDTLS_ECDSA_C) 31 #if defined(MBEDTLS_PEM_PARSE_C) 34 #if defined(MBEDTLS_PKCS5_C) 37 #if defined(MBEDTLS_PKCS12_C) 41 #if defined(MBEDTLS_PSA_CRYPTO_C) 45 #if defined(MBEDTLS_USE_PSA_CRYPTO) 52 #if defined(MBEDTLS_PK_HAVE_ECC_KEYS) && defined(MBEDTLS_PK_HAVE_RFC8410_CURVES) [all …]
|
D | cipher.c | 14 #if defined(MBEDTLS_CIPHER_C) 26 #if defined(MBEDTLS_CHACHAPOLY_C) 30 #if defined(MBEDTLS_GCM_C) 34 #if defined(MBEDTLS_CCM_C) 38 #if defined(MBEDTLS_CHACHA20_C) 42 #if defined(MBEDTLS_CMAC_C) 46 #if defined(MBEDTLS_USE_PSA_CRYPTO) && !defined(MBEDTLS_DEPRECATED_REMOVED) 50 #if defined(MBEDTLS_NIST_KW_C) 69 if (!supported_init) { in mbedtls_cipher_list() 91 if (def->type == cipher_type) { in mbedtls_cipher_info_from_type() [all …]
|
D | psa_crypto.c | 12 #if defined(MBEDTLS_PSA_CRYPTO_C) 14 #if defined(MBEDTLS_PSA_CRYPTO_CONFIG) 32 #if defined(MBEDTLS_PSA_CRYPTO_SE_C) 76 #if defined(PSA_CRYPTO_DRIVER_TFM_BUILTIN_KEY_LOADER) 80 #if defined(MBEDTLS_PSA_BUILTIN_ALG_HKDF) || \ 109 #if !defined(MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG) 115 if (global_data.initialized == 0) \ 123 #if defined(MBEDTLS_PSA_BUILTIN_KEY_TYPE_DH_KEY_PAIR_IMPORT) || \ 128 if (bits != 2048 && bits != 3072 && bits != 4096 && in psa_is_dh_key_size_valid() 149 #if defined(MBEDTLS_AES_C) in mbedtls_to_psa_error() [all …]
|
D | pk.c | 10 #if defined(MBEDTLS_PK_C) 19 #if defined(MBEDTLS_RSA_C) 22 #if defined(MBEDTLS_PK_HAVE_ECC_KEYS) 25 #if defined(MBEDTLS_ECDSA_C) 29 #if defined(MBEDTLS_PSA_CRYPTO_C) 44 #if defined(MBEDTLS_PSA_CRYPTO_C) in mbedtls_pk_init() 47 #if defined(MBEDTLS_PK_USE_PSA_EC_DATA) in mbedtls_pk_init() 60 if (ctx == NULL) { in mbedtls_pk_free() 64 if ((ctx->pk_info != NULL) && (ctx->pk_info->ctx_free_func != NULL)) { in mbedtls_pk_free() 68 #if defined(MBEDTLS_PK_USE_PSA_EC_DATA) in mbedtls_pk_free() [all …]
|
D | pkwrite.c | 10 #if defined(MBEDTLS_PK_WRITE_C) 21 #if defined(MBEDTLS_RSA_C) 24 #if defined(MBEDTLS_ECP_C) 29 #if defined(MBEDTLS_PK_HAVE_ECC_KEYS) 32 #if defined(MBEDTLS_RSA_C) || defined(MBEDTLS_PK_HAVE_ECC_KEYS) 35 #if defined(MBEDTLS_ECDSA_C) 38 #if defined(MBEDTLS_PEM_WRITE_C) 42 #if defined(MBEDTLS_USE_PSA_CRYPTO) 49 #if defined(MBEDTLS_PK_HAVE_ECC_KEYS) 50 #if defined(MBEDTLS_PK_HAVE_RFC8410_CURVES) [all …]
|
D | psa_crypto_driver_wrappers.h | 26 #if defined(MBEDTLS_PSA_CRYPTO_C) 30 #if defined(PSA_CRYPTO_DRIVER_TEST) 35 #if defined(PSA_CRYPTO_DRIVER_TEST) 40 #if defined(MBEDTLS_PSA_P256M_DRIVER_ENABLED) 46 #if defined(PSA_CRYPTO_DRIVER_TFM_BUILTIN_KEY_LOADER) 56 #if defined(PSA_CRYPTO_DRIVER_CC3XX) 77 #if defined(PSA_CRYPTO_DRIVER_TFM_BUILTIN_KEY_LOADER) 80 #if defined(PSA_CRYPTO_DRIVER_CC3XX) 92 #if defined(MBEDTLS_PSA_CRYPTO_SE_C) 105 #if defined(PSA_CRYPTO_DRIVER_TFM_BUILTIN_KEY_LOADER) in psa_driver_wrapper_init() [all …]
|
D | memory_buffer_alloc.c | 10 #if defined(MBEDTLS_MEMORY_BUFFER_ALLOC_C) 20 #if defined(MBEDTLS_MEMORY_BACKTRACE) 24 #if defined(MBEDTLS_THREADING_C) 41 #if defined(MBEDTLS_MEMORY_BACKTRACE) 54 #if defined(MBEDTLS_MEMORY_DEBUG) 62 #if defined(MBEDTLS_THREADING_C) 70 #if defined(MBEDTLS_MEMORY_DEBUG) 73 #if defined(MBEDTLS_MEMORY_BACKTRACE) in debug_header() 84 #if defined(MBEDTLS_MEMORY_BACKTRACE) in debug_header() 115 if (hdr->magic1 != MAGIC1) { in verify_header() [all …]
|
D | entropy.c | 10 #if defined(MBEDTLS_ENTROPY_C) 19 #if defined(MBEDTLS_FS_IO) 32 #if defined(MBEDTLS_THREADING_C) in mbedtls_entropy_init() 42 #if !defined(MBEDTLS_NO_DEFAULT_ENTROPY_SOURCES) in mbedtls_entropy_init() 43 #if !defined(MBEDTLS_NO_PLATFORM_ENTROPY) in mbedtls_entropy_init() 48 #if defined(MBEDTLS_ENTROPY_HARDWARE_ALT) in mbedtls_entropy_init() 53 #if defined(MBEDTLS_ENTROPY_NV_SEED) in mbedtls_entropy_init() 64 /* If the context was already free, don't call free() again. in mbedtls_entropy_free() 66 if (ctx->accumulator_started == -1) { in mbedtls_entropy_free() 70 #if defined(MBEDTLS_THREADING_C) in mbedtls_entropy_free() [all …]
|
D | ssl_tls12_server.c | 10 #if defined(MBEDTLS_SSL_SRV_C) && defined(MBEDTLS_SSL_PROTO_TLS1_2) 24 #if defined(MBEDTLS_USE_PSA_CRYPTO) 27 #if defined(MBEDTLS_KEY_EXCHANGE_SOME_ECDH_ENABLED) || \ 39 #if defined(MBEDTLS_ECP_C) 43 #if defined(MBEDTLS_HAVE_TIME) 47 #if defined(MBEDTLS_SSL_DTLS_HELLO_VERIFY) 52 if (ssl->conf->endpoint != MBEDTLS_SSL_IS_SERVER) { in mbedtls_ssl_set_client_transport_id() 58 if ((ssl->cli_id = mbedtls_calloc(1, ilen)) == NULL) { in mbedtls_ssl_set_client_transport_id() 79 #if defined(MBEDTLS_KEY_EXCHANGE_SOME_PSK_ENABLED) 83 if (conf->f_psk != NULL) { in ssl_conf_has_psk_or_cb() [all …]
|
D | pem.c | 10 #if defined(MBEDTLS_PEM_PARSE_C) || defined(MBEDTLS_PEM_WRITE_C) 25 #if defined(MBEDTLS_USE_PSA_CRYPTO) 29 #if defined(MBEDTLS_MD_CAN_MD5) && \ 37 #if defined(MBEDTLS_PEM_PARSE_C) 43 #if defined(PEM_RFC1421) 55 if (*s >= '0' && *s <= '9') { in pem_get_iv() 58 if (*s >= 'A' && *s <= 'F') { in pem_get_iv() 61 if (*s >= 'a' && *s <= 'f') { in pem_get_iv() 89 if ((ret = mbedtls_md_setup(&md5_ctx, md5_info, 0)) != 0) { in pem_pbkdf1() 96 if ((ret = mbedtls_md_starts(&md5_ctx)) != 0) { in pem_pbkdf1() [all …]
|
D | x509_crt.c | 22 #if defined(MBEDTLS_X509_CRT_PARSE_C) 31 #if defined(MBEDTLS_PEM_PARSE_C) 35 #if defined(MBEDTLS_USE_PSA_CRYPTO) 44 #if defined(MBEDTLS_THREADING_C) 48 #if defined(MBEDTLS_HAVE_TIME) 49 #if defined(_WIN32) && !defined(EFIX64) && !defined(EFI32) 57 #if defined(MBEDTLS_FS_IO) 59 #if !defined(_WIN32) || defined(EFIX64) || defined(EFI32) 62 #if defined(__MBED__) 94 #if defined(MBEDTLS_PK_HAVE_ECC_KEYS) [all …]
|
/mbedtls-3.6.0/include/mbedtls/ |
D | config_adjust_legacy_from_psa.h | 7 * configuration. Generally speaking, we activate a legacy mechanism if 22 #if defined(MBEDTLS_PSA_P256M_DRIVER_ENABLED) 37 * A triplet/pair is accelerated if all of is components are accelerated; 41 * 1. Check if acceleration is complete for curves, key types, algs. 50 #if defined(PSA_WANT_ECC_BRAINPOOL_P_R1_256) && \ 56 #if defined(PSA_WANT_ECC_BRAINPOOL_P_R1_384) && \ 62 #if defined(PSA_WANT_ECC_BRAINPOOL_P_R1_512) && \ 68 #if defined(PSA_WANT_ECC_MONTGOMERY_255) && \ 73 #if defined(PSA_WANT_ECC_MONTGOMERY_448) && \ 78 #if defined(PSA_WANT_ECC_SECP_R1_192) && \ [all …]
|
D | check_config.h | 20 #if CHAR_BIT != 8 26 #if defined(__MINGW32__) || (defined(_MSC_VER) && _MSC_VER <= 1900) 27 #if !defined(MBEDTLS_PLATFORM_C) 33 #if !defined(MBEDTLS_PLATFORM_SNPRINTF_ALT) && \ 38 #if !defined(MBEDTLS_PLATFORM_VSNPRINTF_ALT) && \ 44 #if defined(TARGET_LIKE_MBED) && defined(MBEDTLS_NET_C) 48 #if defined(MBEDTLS_DEPRECATED_WARNING) && \ 53 #if defined(MBEDTLS_HAVE_TIME_DATE) && !defined(MBEDTLS_HAVE_TIME) 59 #if defined(MBEDTLS_PSA_CRYPTO_CONFIG) || defined(MBEDTLS_PSA_CRYPTO_C) 61 #if defined(MBEDTLS_ECP_DP_BP256R1_ENABLED) && !defined(PSA_WANT_ECC_BRAINPOOL_P_R1_256) [all …]
|
D | config_adjust_psa_from_legacy.h | 22 * Ensure PSA_WANT_* defines are setup properly if MBEDTLS_PSA_CRYPTO_CONFIG 26 #if defined(MBEDTLS_CCM_C) 33 #if defined(MBEDTLS_CMAC_C) 38 #if defined(MBEDTLS_ECDH_C) 43 #if defined(MBEDTLS_ECDSA_C) 48 // Only add in DETERMINISTIC support if ECDSA is also enabled 49 #if defined(MBEDTLS_ECDSA_DETERMINISTIC) 56 #if defined(MBEDTLS_ECP_C) 75 #if defined(MBEDTLS_DHM_C) 91 #if defined(MBEDTLS_GCM_C) [all …]
|
/mbedtls-3.6.0/programs/ssl/ |
D | ssl_client2.c | 12 #if defined(MBEDTLS_USE_PSA_CRYPTO) || defined(MBEDTLS_SSL_PROTO_TLS1_3) 16 #if defined(MBEDTLS_SSL_TEST_IMPOSSIBLE) 114 #if defined(MBEDTLS_SSL_HANDSHAKE_WITH_CERT_ENABLED) 124 #if defined(MBEDTLS_SSL_HANDSHAKE_WITH_CERT_ENABLED) 125 #if defined(MBEDTLS_FS_IO) 145 #if defined(MBEDTLS_USE_PSA_CRYPTO) && defined(MBEDTLS_SSL_HANDSHAKE_WITH_CERT_ENABLED) 147 " key_opaque=%%d Handle your private key as if it were opaque\n" \ 153 #if defined(MBEDTLS_SSL_DTLS_CONNECTION_ID) 167 #if defined(MBEDTLS_SSL_HANDSHAKE_WITH_PSK_ENABLED) 172 #if defined(MBEDTLS_USE_PSA_CRYPTO) [all …]
|
D | ssl_server2.c | 12 #if defined(MBEDTLS_SSL_TEST_IMPOSSIBLE) 28 #if !defined(_MSC_VER) 32 #if !defined(_WIN32) 36 #if defined(MBEDTLS_SSL_CACHE_C) 40 #if defined(MBEDTLS_SSL_SESSION_TICKETS) && defined(MBEDTLS_SSL_TICKET_C) 44 #if defined(MBEDTLS_SSL_COOKIE_C) 48 #if defined(MBEDTLS_SSL_SERVER_NAME_INDICATION) && defined(MBEDTLS_FS_IO) 52 #if defined(_WIN32) 56 #if defined(MBEDTLS_USE_PSA_CRYPTO) || defined(MBEDTLS_SSL_PROTO_TLS1_3) 172 #if defined(MBEDTLS_SSL_HANDSHAKE_WITH_CERT_ENABLED) [all …]
|