Home
last modified time | relevance | path

Searched full:if (Results 1 – 25 of 1950) sorted by relevance

12345678910>>...78

/openthread-3.6.0/third_party/mbedtls/repo/library/
Dversion_features.c22 #if defined(MBEDTLS_VERSION_C)
29 #if defined(MBEDTLS_VERSION_FEATURES)
30 #if defined(MBEDTLS_HAVE_ASM)
33 #if defined(MBEDTLS_NO_UDBL_DIVISION)
36 #if defined(MBEDTLS_NO_64BIT_MULTIPLICATION)
39 #if defined(MBEDTLS_HAVE_SSE2)
42 #if defined(MBEDTLS_HAVE_TIME)
45 #if defined(MBEDTLS_HAVE_TIME_DATE)
48 #if defined(MBEDTLS_PLATFORM_MEMORY)
51 #if defined(MBEDTLS_PLATFORM_NO_STD_FUNCTIONS)
[all …]
Dmd.c26 #if defined(MBEDTLS_MD_C)
41 #if defined(MBEDTLS_PLATFORM_C)
51 #if defined(MBEDTLS_FS_IO)
55 #if defined(MBEDTLS_MD2_C)
64 #if defined(MBEDTLS_MD4_C)
73 #if defined(MBEDTLS_MD5_C)
82 #if defined(MBEDTLS_RIPEMD160_C)
91 #if defined(MBEDTLS_SHA1_C)
100 #if defined(MBEDTLS_SHA256_C)
116 #if defined(MBEDTLS_SHA512_C)
[all …]
Dcipher_wrap.c26 #if defined(MBEDTLS_CIPHER_C)
31 #if defined(MBEDTLS_CHACHAPOLY_C)
35 #if defined(MBEDTLS_AES_C)
39 #if defined(MBEDTLS_ARC4_C)
43 #if defined(MBEDTLS_CAMELLIA_C)
47 #if defined(MBEDTLS_ARIA_C)
51 #if defined(MBEDTLS_DES_C)
55 #if defined(MBEDTLS_BLOWFISH_C)
59 #if defined(MBEDTLS_CHACHA20_C)
63 #if defined(MBEDTLS_GCM_C)
[all …]
Dssl_ciphersuites.c24 #if defined(MBEDTLS_SSL_TLS_C)
26 #if defined(MBEDTLS_PLATFORM_C)
38 #if defined(MBEDTLS_SHA512_C) && !defined(MBEDTLS_SHA512_NO_SHA384)
56 #if defined(MBEDTLS_SSL_CIPHERSUITES)
318 #if defined(MBEDTLS_CHACHAPOLY_C) && \
321 #if defined(MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED)
330 #if defined(MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED)
339 #if defined(MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED)
348 #if defined(MBEDTLS_KEY_EXCHANGE_PSK_ENABLED)
357 #if defined(MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED)
[all …]
Dentropy.c22 #if defined(MBEDTLS_ENTROPY_C)
24 #if defined(MBEDTLS_TEST_NULL_ENTROPY)
37 #if defined(MBEDTLS_FS_IO)
41 #if defined(MBEDTLS_ENTROPY_NV_SEED)
45 #if defined(MBEDTLS_SELF_TEST)
46 #if defined(MBEDTLS_PLATFORM_C)
54 #if defined(MBEDTLS_HAVEGE_C)
65 #if defined(MBEDTLS_THREADING_C) in mbedtls_entropy_init()
70 #if defined(MBEDTLS_ENTROPY_SHA512_ACCUMULATOR) in mbedtls_entropy_init()
75 #if defined(MBEDTLS_HAVEGE_C) in mbedtls_entropy_init()
[all …]
Dpkparse.c22 #if defined(MBEDTLS_PK_PARSE_C)
32 #if defined(MBEDTLS_RSA_C)
35 #if defined(MBEDTLS_ECP_C)
38 #if defined(MBEDTLS_ECDSA_C)
41 #if defined(MBEDTLS_PEM_PARSE_C)
44 #if defined(MBEDTLS_PKCS5_C)
47 #if defined(MBEDTLS_PKCS12_C)
51 #if defined(MBEDTLS_PLATFORM_C)
65 #if defined(MBEDTLS_FS_IO)
71 * length only if the data looks like it is PEM encoded.
[all …]
Dssl_tls.c30 #if defined(MBEDTLS_SSL_TLS_C)
32 #if defined(MBEDTLS_PLATFORM_C)
50 #if defined(MBEDTLS_USE_PSA_CRYPTO)
55 #if defined(MBEDTLS_X509_CRT_PARSE_C)
59 #if defined(MBEDTLS_SSL_PROTO_DTLS)
61 #if defined(MBEDTLS_SSL_DTLS_CONNECTION_ID)
68 if( len > MBEDTLS_SSL_CID_IN_LEN_MAX ) in mbedtls_ssl_conf_cid()
71 if( ignore_other_cid != MBEDTLS_SSL_UNEXPECTED_CID_FAIL && in mbedtls_ssl_conf_cid()
87 if( ssl->conf->transport != MBEDTLS_SSL_TRANSPORT_DATAGRAM ) in mbedtls_ssl_set_cid()
91 if( enable == MBEDTLS_SSL_CID_DISABLED ) in mbedtls_ssl_set_cid()
[all …]
Dpsa_crypto_hash.c23 #if defined(MBEDTLS_PSA_CRYPTO_C)
32 #if defined(MBEDTLS_PSA_BUILTIN_ALG_RSA_PKCS1V15_SIGN) || \
40 #if defined(MBEDTLS_MD2_C) in mbedtls_md_info_from_psa()
44 #if defined(MBEDTLS_MD4_C) in mbedtls_md_info_from_psa()
48 #if defined(MBEDTLS_MD5_C) in mbedtls_md_info_from_psa()
52 #if defined(MBEDTLS_RIPEMD160_C) in mbedtls_md_info_from_psa()
56 #if defined(MBEDTLS_SHA1_C) in mbedtls_md_info_from_psa()
60 #if defined(MBEDTLS_SHA256_C) in mbedtls_md_info_from_psa()
64 #if defined(MBEDTLS_SHA256_C) in mbedtls_md_info_from_psa()
68 #if defined(MBEDTLS_SHA512_C) && !defined(MBEDTLS_SHA512_NO_SHA384) in mbedtls_md_info_from_psa()
[all …]
Dmemory_buffer_alloc.c22 #if defined(MBEDTLS_MEMORY_BUFFER_ALLOC_C)
32 #if defined(MBEDTLS_MEMORY_BACKTRACE)
36 #if defined(MBEDTLS_THREADING_C)
54 #if defined(MBEDTLS_MEMORY_BACKTRACE)
68 #if defined(MBEDTLS_MEMORY_DEBUG)
76 #if defined(MBEDTLS_THREADING_C)
84 #if defined(MBEDTLS_MEMORY_DEBUG)
87 #if defined(MBEDTLS_MEMORY_BACKTRACE) in debug_header()
98 #if defined(MBEDTLS_MEMORY_BACKTRACE) in debug_header()
130 if( hdr->magic1 != MAGIC1 ) in verify_header()
[all …]
Dcipher.c26 #if defined(MBEDTLS_CIPHER_C)
37 #if defined(MBEDTLS_CHACHAPOLY_C)
41 #if defined(MBEDTLS_GCM_C)
45 #if defined(MBEDTLS_CCM_C)
49 #if defined(MBEDTLS_CHACHA20_C)
53 #if defined(MBEDTLS_CMAC_C)
57 #if defined(MBEDTLS_USE_PSA_CRYPTO)
62 #if defined(MBEDTLS_NIST_KW_C)
66 #if defined(MBEDTLS_PLATFORM_C)
85 if( ! supported_init ) in mbedtls_cipher_list()
[all …]
Dssl_cache.c26 #if defined(MBEDTLS_SSL_CACHE_C)
28 #if defined(MBEDTLS_PLATFORM_C)
48 #if defined(MBEDTLS_THREADING_C) in mbedtls_ssl_cache_init()
56 #if defined(MBEDTLS_HAVE_TIME) in mbedtls_ssl_cache_get()
62 #if defined(MBEDTLS_THREADING_C) in mbedtls_ssl_cache_get()
63 if( mbedtls_mutex_lock( &cache->mutex ) != 0 ) in mbedtls_ssl_cache_get()
75 #if defined(MBEDTLS_HAVE_TIME) in mbedtls_ssl_cache_get()
76 if( cache->timeout != 0 && in mbedtls_ssl_cache_get()
81 if( session->id_len != entry->session.id_len || in mbedtls_ssl_cache_get()
89 if( ret != 0 ) in mbedtls_ssl_cache_get()
[all …]
Dpsa_crypto.c23 #if defined(MBEDTLS_PSA_CRYPTO_C)
25 #if defined(MBEDTLS_PSA_CRYPTO_CONFIG)
40 #if defined(MBEDTLS_PSA_CRYPTO_SE_C)
54 #if !defined(MBEDTLS_PLATFORM_C)
118 #if !defined(MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG)
124 if( global_data.initialized == 0 ) \
159 #if defined(MBEDTLS_ERR_BLOWFISH_BAD_INPUT_DATA) in mbedtls_to_psa_error()
169 #if defined(MBEDTLS_ERR_CAMELLIA_BAD_INPUT_DATA) in mbedtls_to_psa_error()
214 #if !( defined(MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG) || \ in mbedtls_to_psa_error()
216 /* Only check CTR_DRBG error codes if underlying mbedtls_xxx in mbedtls_to_psa_error()
[all …]
Dssl_srv.c22 #if defined(MBEDTLS_SSL_SRV_C)
24 #if defined(MBEDTLS_PLATFORM_C)
42 #if defined(MBEDTLS_ECP_C)
46 #if defined(MBEDTLS_HAVE_TIME)
50 #if defined(MBEDTLS_SSL_DTLS_HELLO_VERIFY)
55 if( ssl->conf->endpoint != MBEDTLS_SSL_IS_SERVER ) in mbedtls_ssl_set_client_transport_id()
60 if( ( ssl->cli_id = mbedtls_calloc( 1, ilen ) ) == NULL ) in mbedtls_ssl_set_client_transport_id()
80 #if defined(MBEDTLS_SSL_SERVER_NAME_INDICATION)
91 if( len < 2 ) in ssl_parse_servername_ext()
99 if( servername_list_size + 2 != len ) in ssl_parse_servername_ext()
[all …]
Dssl_msg.c31 #if defined(MBEDTLS_SSL_TLS_C)
33 #if defined(MBEDTLS_PLATFORM_C)
52 #if defined(MBEDTLS_USE_PSA_CRYPTO)
57 #if defined(MBEDTLS_X509_CRT_PARSE_C)
69 if( ssl->f_set_timer == NULL ) in mbedtls_ssl_set_timer()
77 * Return -1 is timer is expired, 0 if it isn't.
81 if( ssl->f_get_timer == NULL ) in mbedtls_ssl_check_timer()
84 if( ssl->f_get_timer( ssl->p_timer ) == 2 ) in mbedtls_ssl_check_timer()
93 #if defined(MBEDTLS_SSL_RECORD_CHECKING)
112 if( ssl->conf->transport == MBEDTLS_SSL_TRANSPORT_STREAM ) in mbedtls_ssl_check_record()
[all …]
/openthread-3.6.0/third_party/mbedtls/repo/programs/test/
Dquery_config.c20 #if !defined(MBEDTLS_CONFIG_FILE)
28 #if defined(MBEDTLS_PLATFORM_C)
118 #if defined(_MSC_VER)
133 #if defined(MBEDTLS_HAVE_ASM) in query_config()
134 if( strcmp( "MBEDTLS_HAVE_ASM", config ) == 0 ) in query_config()
141 #if defined(MBEDTLS_NO_UDBL_DIVISION) in query_config()
142 if( strcmp( "MBEDTLS_NO_UDBL_DIVISION", config ) == 0 ) in query_config()
149 #if defined(MBEDTLS_NO_64BIT_MULTIPLICATION) in query_config()
150 if( strcmp( "MBEDTLS_NO_64BIT_MULTIPLICATION", config ) == 0 ) in query_config()
157 #if defined(MBEDTLS_HAVE_SSE2) in query_config()
[all …]
Dselftest.c20 #if !defined(MBEDTLS_CONFIG_FILE)
62 #if defined(MBEDTLS_PLATFORM_C)
76 #if defined(MBEDTLS_MEMORY_BUFFER_ALLOC_C)
81 #if defined MBEDTLS_SELF_TEST
94 if( empty1 == NULL && empty2 == NULL ) in calloc_self_test()
96 if( verbose ) in calloc_self_test()
99 else if( empty1 == NULL || empty2 == NULL ) in calloc_self_test()
101 if( verbose ) in calloc_self_test()
105 else if( empty1 == empty2 ) in calloc_self_test()
107 if( verbose ) in calloc_self_test()
[all …]
/openthread-3.6.0/third_party/mbedtls/repo/include/mbedtls/
Dconfig_psa.h33 #if defined(MBEDTLS_PSA_CRYPTO_CONFIG)
47 #if defined(PSA_WANT_ALG_ECDSA_ANY) && !defined(PSA_WANT_ALG_ECDSA)
53 #if defined(PSA_WANT_ALG_RSA_PKCS1V15_SIGN_RAW) && !defined(PSA_WANT_ALG_RSA_PKCS1V15_SIGN)
59 #if defined(PSA_WANT_ALG_RSA_PSS_ANY_SALT) && !defined(PSA_WANT_ALG_RSA_PSS)
71 #if defined(MBEDTLS_PSA_CRYPTO_CONFIG)
73 #if defined(PSA_WANT_ALG_DETERMINISTIC_ECDSA)
74 #if !defined(MBEDTLS_PSA_ACCEL_ALG_DETERMINISTIC_ECDSA)
83 #if defined(PSA_WANT_ALG_ECDH)
84 #if !defined(MBEDTLS_PSA_ACCEL_ALG_ECDH)
92 #if defined(PSA_WANT_ALG_ECDSA)
[all …]
Dcheck_config.h36 #if CHAR_BIT != 8
40 #if defined(_WIN32)
41 #if !defined(MBEDTLS_PLATFORM_C)
47 #if !defined(MBEDTLS_PLATFORM_SNPRINTF_ALT) && \
52 #if !defined(MBEDTLS_PLATFORM_VSNPRINTF_ALT) && \
58 #if defined(TARGET_LIKE_MBED) && defined(MBEDTLS_NET_C)
62 #if defined(MBEDTLS_DEPRECATED_WARNING) && \
67 #if defined(MBEDTLS_HAVE_TIME_DATE) && !defined(MBEDTLS_HAVE_TIME)
71 #if defined(MBEDTLS_AESNI_C) && !defined(MBEDTLS_HAVE_ASM)
75 #if defined(MBEDTLS_CTR_DRBG_C) && !defined(MBEDTLS_AES_C)
[all …]
/openthread-3.6.0/third_party/mbedtls/repo/tests/include/test/drivers/
Dcrypto_config_test_driver_extension.h9 #if defined(PSA_WANT_ALG_CBC_NO_PADDING)
10 #if defined(MBEDTLS_PSA_ACCEL_ALG_CBC_NO_PADDING)
17 #if defined(PSA_WANT_ALG_CBC_PKCS7)
18 #if defined(MBEDTLS_PSA_ACCEL_ALG_CBC_PKCS7)
25 #if defined(PSA_WANT_ALG_CFB)
26 #if defined(MBEDTLS_PSA_ACCEL_ALG_CFB)
33 #if defined(PSA_WANT_ALG_CTR)
34 #if defined(MBEDTLS_PSA_ACCEL_ALG_CTR)
41 #if defined(PSA_WANT_ALG_DETERMINISTIC_ECDSA)
42 #if defined(MBEDTLS_PSA_ACCEL_ALG_DETERMINISTIC_ECDSA)
[all …]
/openthread-3.6.0/src/ncp/
Dncp_base_dispatcher.cpp25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
73 #if OPENTHREAD_MTD || OPENTHREAD_FTD in FindGetPropertyHandler()
87 #if OPENTHREAD_MTD || OPENTHREAD_FTD in FindGetPropertyHandler()
100 #if OPENTHREAD_FTD in FindGetPropertyHandler()
105 #if OPENTHREAD_FTD in FindGetPropertyHandler()
109 #if OPENTHREAD_FTD in FindGetPropertyHandler()
113 #if OPENTHREAD_CONFIG_BORDER_ROUTER_ENABLE in FindGetPropertyHandler()
117 #if OPENTHREAD_CONFIG_BORDER_ROUTER_ENABLE in FindGetPropertyHandler()
134 #if OPENTHREAD_CONFIG_JOINER_ENABLE in FindGetPropertyHandler()
137 #if OPENTHREAD_FTD in FindGetPropertyHandler()
[all …]
/openthread-3.6.0/third_party/mbedtls/repo/programs/ssl/
Dssl_client2.c22 #if defined(MBEDTLS_USE_PSA_CRYPTO)
26 #if defined(MBEDTLS_SSL_TEST_IMPOSSIBLE)
119 #if defined(MBEDTLS_X509_CRT_PARSE_C)
129 #if defined(MBEDTLS_X509_CRT_PARSE_C)
130 #if defined(MBEDTLS_FS_IO)
150 #if defined(MBEDTLS_USE_PSA_CRYPTO) && defined(MBEDTLS_X509_CRT_PARSE_C)
152 " key_opaque=%%d Handle your private key as if it were opaque\n" \
158 #if defined(MBEDTLS_SSL_DTLS_CONNECTION_ID)
172 #if defined(MBEDTLS_KEY_EXCHANGE_SOME_PSK_ENABLED)
177 #if defined(MBEDTLS_USE_PSA_CRYPTO)
[all …]
Dssl_server2.c22 #if defined(MBEDTLS_SSL_TEST_IMPOSSIBLE)
38 #if !defined(_MSC_VER)
42 #if !defined(_WIN32)
46 #if defined(MBEDTLS_SSL_CACHE_C)
50 #if defined(MBEDTLS_SSL_TICKET_C)
54 #if defined(MBEDTLS_SSL_COOKIE_C)
58 #if defined(MBEDTLS_SSL_SERVER_NAME_INDICATION) && defined(MBEDTLS_FS_IO)
62 #if defined(_WIN32)
66 #if defined(MBEDTLS_USE_PSA_CRYPTO)
169 * if you change this value to something outside the range <= 100 or > 500
[all …]
/openthread-3.6.0/src/core/instance/
Dinstance.cpp25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
44 #if !OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_ENABLE
51 #if OPENTHREAD_CONFIG_MULTIPLE_STATIC_INSTANCE_ENABLE
61 #if OPENTHREAD_MTD || OPENTHREAD_FTD
62 #if !OPENTHREAD_CONFIG_HEAP_EXTERNAL_ENABLE
66 #if OPENTHREAD_CONFIG_REFERENCE_DEVICE_ENABLE
71 #if OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE
77 #if OPENTHREAD_CONFIG_PLATFORM_USEC_TIMER_ENABLE in Instance()
81 #if OPENTHREAD_CONFIG_UPTIME_ENABLE in Instance()
84 #if OPENTHREAD_MTD || OPENTHREAD_FTD in Instance()
[all …]
Dinstance.hpp25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
43 #if OPENTHREAD_CONFIG_HEAP_EXTERNAL_ENABLE
65 #if OPENTHREAD_FTD || OPENTHREAD_MTD
175 #if OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_ENABLE
182 …* @param[in,out] aBufferSize On input, the size of `aBuffer`. On output, if not enough space for …
190 #if OPENTHREAD_CONFIG_MULTIPLE_STATIC_INSTANCE_ENABLE
241 * @returns TRUE if the instance is valid/initialized, FALSE otherwise.
255 #if OPENTHREAD_CONFIG_PLATFORM_BOOTLOADER_MODE_ENABLE
257 * Triggers a platform reset to bootloader mode, if supported.
267 #if OPENTHREAD_RADIO
[all …]
/openthread-3.6.0/src/core/mac/
Dmac_links.cpp25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
48 #if OPENTHREAD_CONFIG_RADIO_LINK_IEEE_802_15_4_ENABLE in TxFrames()
51 #if OPENTHREAD_CONFIG_RADIO_LINK_TREL_ENABLE in TxFrames()
57 #if OPENTHREAD_CONFIG_MULTI_RADIO
65 #if OPENTHREAD_CONFIG_RADIO_LINK_IEEE_802_15_4_ENABLE in GetTxFrame()
70 #if OPENTHREAD_CONFIG_RADIO_LINK_TREL_ENABLE in GetTxFrame()
91 #if OPENTHREAD_CONFIG_RADIO_LINK_IEEE_802_15_4_ENABLE in GetTxFrame()
92 if (aRadioTypes.Contains(kRadioTypeIeee802154)) in GetTxFrame()
98 #if OPENTHREAD_CONFIG_RADIO_LINK_TREL_ENABLE in GetTxFrame()
99if (aRadioTypes.Contains(kRadioTypeTrel) && ((frame == nullptr) || (frame->GetMtu() > mTxFrameTrel… in GetTxFrame()
[all …]

12345678910>>...78