Lines Matching full:if
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)
313 #if defined(MBEDTLS_CHACHAPOLY_C) && defined(MBEDTLS_MD_CAN_SHA256)
323 #if defined(MBEDTLS_CHACHAPOLY_C) && \
326 #if defined(MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED)
334 #if defined(MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED)
342 #if defined(MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED)
350 #if defined(MBEDTLS_KEY_EXCHANGE_PSK_ENABLED)
358 #if defined(MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED)
366 #if defined(MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED)
374 #if defined(MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED)
385 #if defined(MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED)
386 #if defined(MBEDTLS_AES_C)
387 #if defined(MBEDTLS_MD_CAN_SHA1)
388 #if defined(MBEDTLS_CIPHER_MODE_CBC)
399 #if defined(MBEDTLS_MD_CAN_SHA256)
400 #if defined(MBEDTLS_CIPHER_MODE_CBC)
406 #if defined(MBEDTLS_GCM_C)
413 #if defined(MBEDTLS_MD_CAN_SHA384)
414 #if defined(MBEDTLS_CIPHER_MODE_CBC)
420 #if defined(MBEDTLS_GCM_C)
427 #if defined(MBEDTLS_CCM_C)
447 #if defined(MBEDTLS_CAMELLIA_C)
448 #if defined(MBEDTLS_CIPHER_MODE_CBC)
449 #if defined(MBEDTLS_MD_CAN_SHA256)
456 #if defined(MBEDTLS_MD_CAN_SHA384)
465 #if defined(MBEDTLS_GCM_C)
466 #if defined(MBEDTLS_MD_CAN_SHA256)
473 #if defined(MBEDTLS_MD_CAN_SHA384)
483 #if defined(MBEDTLS_CIPHER_NULL_CIPHER)
484 #if defined(MBEDTLS_MD_CAN_SHA1)
493 #if defined(MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED)
494 #if defined(MBEDTLS_AES_C)
495 #if defined(MBEDTLS_MD_CAN_SHA1)
496 #if defined(MBEDTLS_CIPHER_MODE_CBC)
507 #if defined(MBEDTLS_MD_CAN_SHA256)
508 #if defined(MBEDTLS_CIPHER_MODE_CBC)
514 #if defined(MBEDTLS_GCM_C)
521 #if defined(MBEDTLS_MD_CAN_SHA384)
522 #if defined(MBEDTLS_CIPHER_MODE_CBC)
528 #if defined(MBEDTLS_GCM_C)
537 #if defined(MBEDTLS_CAMELLIA_C)
538 #if defined(MBEDTLS_CIPHER_MODE_CBC)
539 #if defined(MBEDTLS_MD_CAN_SHA256)
546 #if defined(MBEDTLS_MD_CAN_SHA384)
555 #if defined(MBEDTLS_GCM_C)
556 #if defined(MBEDTLS_MD_CAN_SHA256)
563 #if defined(MBEDTLS_MD_CAN_SHA384)
573 #if defined(MBEDTLS_CIPHER_NULL_CIPHER)
574 #if defined(MBEDTLS_MD_CAN_SHA1)
583 #if defined(MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED)
584 #if defined(MBEDTLS_AES_C)
585 #if defined(MBEDTLS_MD_CAN_SHA384) && \
593 #if defined(MBEDTLS_MD_CAN_SHA256)
594 #if defined(MBEDTLS_GCM_C)
601 #if defined(MBEDTLS_CIPHER_MODE_CBC)
614 #if defined(MBEDTLS_CIPHER_MODE_CBC)
615 #if defined(MBEDTLS_MD_CAN_SHA1)
627 #if defined(MBEDTLS_CCM_C)
647 #if defined(MBEDTLS_CAMELLIA_C)
648 #if defined(MBEDTLS_CIPHER_MODE_CBC)
649 #if defined(MBEDTLS_MD_CAN_SHA256)
661 #if defined(MBEDTLS_MD_CAN_SHA1)
673 #if defined(MBEDTLS_GCM_C)
674 #if defined(MBEDTLS_MD_CAN_SHA256)
681 #if defined(MBEDTLS_MD_CAN_SHA384)
692 #if defined(MBEDTLS_KEY_EXCHANGE_RSA_ENABLED)
693 #if defined(MBEDTLS_AES_C)
694 #if defined(MBEDTLS_MD_CAN_SHA384) && \
702 #if defined(MBEDTLS_MD_CAN_SHA256)
703 #if defined(MBEDTLS_GCM_C)
710 #if defined(MBEDTLS_CIPHER_MODE_CBC)
723 #if defined(MBEDTLS_MD_CAN_SHA1)
724 #if defined(MBEDTLS_CIPHER_MODE_CBC)
736 #if defined(MBEDTLS_CCM_C)
756 #if defined(MBEDTLS_CAMELLIA_C)
757 #if defined(MBEDTLS_CIPHER_MODE_CBC)
758 #if defined(MBEDTLS_MD_CAN_SHA256)
770 #if defined(MBEDTLS_MD_CAN_SHA1)
783 #if defined(MBEDTLS_GCM_C)
784 #if defined(MBEDTLS_MD_CAN_SHA256)
791 #if defined(MBEDTLS_MD_CAN_SHA384)
802 #if defined(MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED)
803 #if defined(MBEDTLS_AES_C)
804 #if defined(MBEDTLS_MD_CAN_SHA1)
805 #if defined(MBEDTLS_CIPHER_MODE_CBC)
816 #if defined(MBEDTLS_MD_CAN_SHA256)
817 #if defined(MBEDTLS_CIPHER_MODE_CBC)
823 #if defined(MBEDTLS_GCM_C)
830 #if defined(MBEDTLS_MD_CAN_SHA384)
831 #if defined(MBEDTLS_CIPHER_MODE_CBC)
837 #if defined(MBEDTLS_GCM_C)
846 #if defined(MBEDTLS_CAMELLIA_C)
847 #if defined(MBEDTLS_CIPHER_MODE_CBC)
848 #if defined(MBEDTLS_MD_CAN_SHA256)
855 #if defined(MBEDTLS_MD_CAN_SHA384)
864 #if defined(MBEDTLS_GCM_C)
865 #if defined(MBEDTLS_MD_CAN_SHA256)
872 #if defined(MBEDTLS_MD_CAN_SHA384)
882 #if defined(MBEDTLS_CIPHER_NULL_CIPHER)
883 #if defined(MBEDTLS_MD_CAN_SHA1)
892 #if defined(MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED)
893 #if defined(MBEDTLS_AES_C)
894 #if defined(MBEDTLS_MD_CAN_SHA1)
895 #if defined(MBEDTLS_CIPHER_MODE_CBC)
906 #if defined(MBEDTLS_MD_CAN_SHA256)
907 #if defined(MBEDTLS_CIPHER_MODE_CBC)
913 #if defined(MBEDTLS_GCM_C)
920 #if defined(MBEDTLS_MD_CAN_SHA384)
921 #if defined(MBEDTLS_CIPHER_MODE_CBC)
927 #if defined(MBEDTLS_GCM_C)
936 #if defined(MBEDTLS_CAMELLIA_C)
937 #if defined(MBEDTLS_CIPHER_MODE_CBC)
938 #if defined(MBEDTLS_MD_CAN_SHA256)
945 #if defined(MBEDTLS_MD_CAN_SHA384)
954 #if defined(MBEDTLS_GCM_C)
955 #if defined(MBEDTLS_MD_CAN_SHA256)
962 #if defined(MBEDTLS_MD_CAN_SHA384)
972 #if defined(MBEDTLS_CIPHER_NULL_CIPHER)
973 #if defined(MBEDTLS_MD_CAN_SHA1)
982 #if defined(MBEDTLS_KEY_EXCHANGE_PSK_ENABLED)
983 #if defined(MBEDTLS_AES_C)
984 #if defined(MBEDTLS_GCM_C)
985 #if defined(MBEDTLS_MD_CAN_SHA256)
992 #if defined(MBEDTLS_MD_CAN_SHA384)
1000 #if defined(MBEDTLS_CIPHER_MODE_CBC)
1001 #if defined(MBEDTLS_MD_CAN_SHA256)
1008 #if defined(MBEDTLS_MD_CAN_SHA384)
1015 #if defined(MBEDTLS_MD_CAN_SHA1)
1027 #if defined(MBEDTLS_CCM_C)
1047 #if defined(MBEDTLS_CAMELLIA_C)
1048 #if defined(MBEDTLS_CIPHER_MODE_CBC)
1049 #if defined(MBEDTLS_MD_CAN_SHA256)
1056 #if defined(MBEDTLS_MD_CAN_SHA384)
1064 #if defined(MBEDTLS_GCM_C)
1065 #if defined(MBEDTLS_MD_CAN_SHA256)
1072 #if defined(MBEDTLS_MD_CAN_SHA384)
1083 #if defined(MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED)
1084 #if defined(MBEDTLS_AES_C)
1085 #if defined(MBEDTLS_GCM_C)
1086 #if defined(MBEDTLS_MD_CAN_SHA256)
1093 #if defined(MBEDTLS_MD_CAN_SHA384)
1101 #if defined(MBEDTLS_CIPHER_MODE_CBC)
1102 #if defined(MBEDTLS_MD_CAN_SHA256)
1109 #if defined(MBEDTLS_MD_CAN_SHA384)
1116 #if defined(MBEDTLS_MD_CAN_SHA1)
1128 #if defined(MBEDTLS_CCM_C)
1148 #if defined(MBEDTLS_CAMELLIA_C)
1149 #if defined(MBEDTLS_CIPHER_MODE_CBC)
1150 #if defined(MBEDTLS_MD_CAN_SHA256)
1157 #if defined(MBEDTLS_MD_CAN_SHA384)
1165 #if defined(MBEDTLS_GCM_C)
1166 #if defined(MBEDTLS_MD_CAN_SHA256)
1173 #if defined(MBEDTLS_MD_CAN_SHA384)
1184 #if defined(MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED)
1185 #if defined(MBEDTLS_AES_C)
1187 #if defined(MBEDTLS_CIPHER_MODE_CBC)
1188 #if defined(MBEDTLS_MD_CAN_SHA256)
1195 #if defined(MBEDTLS_MD_CAN_SHA384)
1202 #if defined(MBEDTLS_MD_CAN_SHA1)
1216 #if defined(MBEDTLS_CAMELLIA_C)
1217 #if defined(MBEDTLS_CIPHER_MODE_CBC)
1218 #if defined(MBEDTLS_MD_CAN_SHA256)
1226 #if defined(MBEDTLS_MD_CAN_SHA384)
1238 #if defined(MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED)
1239 #if defined(MBEDTLS_AES_C)
1240 #if defined(MBEDTLS_GCM_C)
1241 #if defined(MBEDTLS_MD_CAN_SHA256)
1248 #if defined(MBEDTLS_MD_CAN_SHA384)
1256 #if defined(MBEDTLS_CIPHER_MODE_CBC)
1257 #if defined(MBEDTLS_MD_CAN_SHA256)
1264 #if defined(MBEDTLS_MD_CAN_SHA384)
1271 #if defined(MBEDTLS_MD_CAN_SHA1)
1285 #if defined(MBEDTLS_CAMELLIA_C)
1286 #if defined(MBEDTLS_CIPHER_MODE_CBC)
1287 #if defined(MBEDTLS_MD_CAN_SHA256)
1294 #if defined(MBEDTLS_MD_CAN_SHA384)
1302 #if defined(MBEDTLS_GCM_C)
1303 #if defined(MBEDTLS_MD_CAN_SHA256)
1310 #if defined(MBEDTLS_MD_CAN_SHA384)
1321 #if defined(MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED)
1322 #if defined(MBEDTLS_AES_C)
1323 #if defined(MBEDTLS_CCM_C)
1332 #if defined(MBEDTLS_CIPHER_NULL_CIPHER)
1333 #if defined(MBEDTLS_KEY_EXCHANGE_RSA_ENABLED)
1334 #if defined(MBEDTLS_MD_CAN_MD5)
1341 #if defined(MBEDTLS_MD_CAN_SHA1)
1348 #if defined(MBEDTLS_MD_CAN_SHA256)
1356 #if defined(MBEDTLS_KEY_EXCHANGE_PSK_ENABLED)
1357 #if defined(MBEDTLS_MD_CAN_SHA1)
1364 #if defined(MBEDTLS_MD_CAN_SHA256)
1371 #if defined(MBEDTLS_MD_CAN_SHA384)
1379 #if defined(MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED)
1380 #if defined(MBEDTLS_MD_CAN_SHA1)
1387 #if defined(MBEDTLS_MD_CAN_SHA256)
1394 #if defined(MBEDTLS_MD_CAN_SHA384)
1402 #if defined(MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED)
1403 #if defined(MBEDTLS_MD_CAN_SHA1)
1410 #if defined(MBEDTLS_MD_CAN_SHA256)
1417 #if defined(MBEDTLS_MD_CAN_SHA384)
1425 #if defined(MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED)
1426 #if defined(MBEDTLS_MD_CAN_SHA1)
1433 #if defined(MBEDTLS_MD_CAN_SHA256)
1440 #if defined(MBEDTLS_MD_CAN_SHA384)
1449 #if defined(MBEDTLS_ARIA_C)
1451 #if defined(MBEDTLS_KEY_EXCHANGE_RSA_ENABLED)
1453 #if (defined(MBEDTLS_GCM_C) && defined(MBEDTLS_MD_CAN_SHA384))
1460 #if (defined(MBEDTLS_CIPHER_MODE_CBC) && \
1468 #if (defined(MBEDTLS_GCM_C) && defined(MBEDTLS_MD_CAN_SHA256))
1475 #if (defined(MBEDTLS_CIPHER_MODE_CBC) && \
1486 #if defined(MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED)
1488 #if (defined(MBEDTLS_GCM_C) && defined(MBEDTLS_MD_CAN_SHA384))
1495 #if (defined(MBEDTLS_CIPHER_MODE_CBC) && \
1503 #if (defined(MBEDTLS_GCM_C) && defined(MBEDTLS_MD_CAN_SHA256))
1510 #if (defined(MBEDTLS_CIPHER_MODE_CBC) && \
1521 #if defined(MBEDTLS_KEY_EXCHANGE_PSK_ENABLED)
1523 #if (defined(MBEDTLS_GCM_C) && defined(MBEDTLS_MD_CAN_SHA384))
1530 #if (defined(MBEDTLS_CIPHER_MODE_CBC) && \
1538 #if (defined(MBEDTLS_GCM_C) && defined(MBEDTLS_MD_CAN_SHA256))
1545 #if (defined(MBEDTLS_CIPHER_MODE_CBC) && \
1556 #if defined(MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED)
1558 #if (defined(MBEDTLS_GCM_C) && defined(MBEDTLS_MD_CAN_SHA384))
1565 #if (defined(MBEDTLS_CIPHER_MODE_CBC) && \
1573 #if (defined(MBEDTLS_GCM_C) && defined(MBEDTLS_MD_CAN_SHA256))
1580 #if (defined(MBEDTLS_CIPHER_MODE_CBC) && \
1591 #if defined(MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED)
1593 #if (defined(MBEDTLS_GCM_C) && defined(MBEDTLS_MD_CAN_SHA384))
1600 #if (defined(MBEDTLS_CIPHER_MODE_CBC) && \
1608 #if (defined(MBEDTLS_GCM_C) && defined(MBEDTLS_MD_CAN_SHA256))
1615 #if (defined(MBEDTLS_CIPHER_MODE_CBC) && \
1626 #if defined(MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED)
1628 #if (defined(MBEDTLS_CIPHER_MODE_CBC) && \
1636 #if (defined(MBEDTLS_CIPHER_MODE_CBC) && \
1647 #if defined(MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED)
1649 #if (defined(MBEDTLS_GCM_C) && defined(MBEDTLS_MD_CAN_SHA384))
1656 #if (defined(MBEDTLS_CIPHER_MODE_CBC) && \
1664 #if (defined(MBEDTLS_GCM_C) && defined(MBEDTLS_MD_CAN_SHA256))
1671 #if (defined(MBEDTLS_CIPHER_MODE_CBC) && \
1682 #if defined(MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED)
1684 #if (defined(MBEDTLS_GCM_C) && defined(MBEDTLS_MD_CAN_SHA384))
1691 #if (defined(MBEDTLS_CIPHER_MODE_CBC) && \
1699 #if (defined(MBEDTLS_GCM_C) && defined(MBEDTLS_MD_CAN_SHA256))
1706 #if (defined(MBEDTLS_CIPHER_MODE_CBC) && \
1717 #if defined(MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED)
1719 #if (defined(MBEDTLS_GCM_C) && defined(MBEDTLS_MD_CAN_SHA384))
1726 #if (defined(MBEDTLS_CIPHER_MODE_CBC) && \
1734 #if (defined(MBEDTLS_GCM_C) && defined(MBEDTLS_MD_CAN_SHA256))
1741 #if (defined(MBEDTLS_CIPHER_MODE_CBC) && \
1752 #if defined(MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED)
1754 #if (defined(MBEDTLS_GCM_C) && defined(MBEDTLS_MD_CAN_SHA384))
1761 #if (defined(MBEDTLS_CIPHER_MODE_CBC) && \
1769 #if (defined(MBEDTLS_GCM_C) && defined(MBEDTLS_MD_CAN_SHA256))
1776 #if (defined(MBEDTLS_CIPHER_MODE_CBC) && \
1795 #if defined(MBEDTLS_SSL_CIPHERSUITES)
1820 if (supported_init == 0) { in mbedtls_ssl_list_ciphersuites()
1828 if ((cs_info = mbedtls_ssl_ciphersuite_from_id(*p)) != NULL && in mbedtls_ssl_list_ciphersuites()
1847 if (NULL == ciphersuite_name) { in mbedtls_ssl_ciphersuite_from_string()
1852 if (0 == strcmp(cur->name, ciphersuite_name)) { in mbedtls_ssl_ciphersuite_from_string()
1867 if (cur->id == ciphersuite) { in mbedtls_ssl_ciphersuite_from_id()
1883 if (cur == NULL) { in mbedtls_ssl_get_ciphersuite_name()
1896 if (cur == NULL) { in mbedtls_ssl_get_ciphersuite_id()
1905 #if defined(MBEDTLS_USE_PSA_CRYPTO) in mbedtls_ssl_ciphersuite_get_cipher_key_bitlen()
1915 if (status != PSA_SUCCESS) { in mbedtls_ssl_ciphersuite_get_cipher_key_bitlen()
1928 #if defined(MBEDTLS_PK_C)
1950 #if defined(MBEDTLS_USE_PSA_CRYPTO)
2012 #if defined(MBEDTLS_KEY_EXCHANGE_SOME_ECDH_OR_ECDHE_1_2_ENABLED) || \
2034 #if defined(MBEDTLS_KEY_EXCHANGE_SOME_PSK_ENABLED)