Home
last modified time | relevance | path

Searched refs:ciphersuite_info (Results 1 – 14 of 14) sorted by relevance

/mbedtls-3.7.0/library/
Dssl_tls13_keys.c676 (mbedtls_md_type_t) handshake->ciphersuite_info->mac); in ssl_tls13_key_schedule_stage_application()
788 mbedtls_md_type_t const md_type = (mbedtls_md_type_t) ssl->handshake->ciphersuite_info->mac; in mbedtls_ssl_tls13_calculate_verify_data()
791 (mbedtls_md_type_t) ssl->handshake->ciphersuite_info->mac); in mbedtls_ssl_tls13_calculate_verify_data()
934 const mbedtls_ssl_ciphersuite_t *ciphersuite_info; in mbedtls_ssl_tls13_populate_transform() local
953 ciphersuite_info = mbedtls_ssl_ciphersuite_from_id(ciphersuite); in mbedtls_ssl_tls13_populate_transform()
954 if (ciphersuite_info == NULL) { in mbedtls_ssl_tls13_populate_transform()
961 cipher_info = mbedtls_cipher_info_from_type(ciphersuite_info->cipher); in mbedtls_ssl_tls13_populate_transform()
964 ciphersuite_info->cipher)); in mbedtls_ssl_tls13_populate_transform()
1028 if ((ciphersuite_info->flags & MBEDTLS_CIPHERSUITE_SHORT_TAG) != 0) { in mbedtls_ssl_tls13_populate_transform()
1050 if ((status = mbedtls_ssl_cipher_to_psa((mbedtls_cipher_type_t) ciphersuite_info->cipher, in mbedtls_ssl_tls13_populate_transform()
[all …]
Dssl_tls12_client.c866 if (ssl->handshake->ciphersuite_info->key_exchange != in ssl_parse_ecjpake_kkpp()
1349 ssl->handshake->ciphersuite_info = mbedtls_ssl_ciphersuite_from_id(i); in ssl_parse_server_hello()
1350 if (ssl->handshake->ciphersuite_info == NULL) { in ssl_parse_server_hello()
1358 mbedtls_ssl_optimize_checksum(ssl, ssl->handshake->ciphersuite_info); in ssl_parse_server_hello()
2083 const mbedtls_ssl_ciphersuite_t *ciphersuite_info = in ssl_parse_server_key_exchange() local
2084 ssl->handshake->ciphersuite_info; in ssl_parse_server_key_exchange()
2090 if (ciphersuite_info->key_exchange == MBEDTLS_KEY_EXCHANGE_RSA) { in ssl_parse_server_key_exchange()
2101 if (ciphersuite_info->key_exchange == MBEDTLS_KEY_EXCHANGE_ECDH_RSA || in ssl_parse_server_key_exchange()
2102 ciphersuite_info->key_exchange == MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA) { in ssl_parse_server_key_exchange()
2147 if (ciphersuite_info->key_exchange == MBEDTLS_KEY_EXCHANGE_PSK || in ssl_parse_server_key_exchange()
[all …]
Dssl_tls12_server.c688 const mbedtls_ssl_ciphersuite_t *ciphersuite_info) in ssl_pick_cert() argument
693 mbedtls_ssl_get_ciphersuite_sig_pk_psa_alg(ciphersuite_info); in ssl_pick_cert()
695 mbedtls_ssl_get_ciphersuite_sig_pk_psa_usage(ciphersuite_info); in ssl_pick_cert()
698 mbedtls_ssl_get_ciphersuite_sig_pk_alg(ciphersuite_info); in ssl_pick_cert()
758 if (mbedtls_ssl_check_cert_usage(cur->cert, ciphersuite_info, in ssl_pick_cert()
796 const mbedtls_ssl_ciphersuite_t **ciphersuite_info) in ssl_ciphersuite_match() argument
879 *ciphersuite_info = suite_info; in ssl_ciphersuite_match()
902 const mbedtls_ssl_ciphersuite_t *ciphersuite_info; in ssl_parse_client_hello() local
1598 ciphersuite_info = NULL; in ssl_parse_client_hello()
1610 &ciphersuite_info)) != 0) { in ssl_parse_client_hello()
[all …]
Dssl_tls13_client.c671 const mbedtls_ssl_ciphersuite_t *ciphersuite_info = NULL; in ssl_tls13_get_ciphersuite_hash_alg() local
672 ciphersuite_info = mbedtls_ssl_ciphersuite_from_id(ciphersuite); in ssl_tls13_get_ciphersuite_hash_alg()
674 if (ciphersuite_info != NULL) { in ssl_tls13_get_ciphersuite_hash_alg()
675 return mbedtls_md_psa_alg_from_type((mbedtls_md_type_t) ciphersuite_info->mac); in ssl_tls13_get_ciphersuite_hash_alg()
1113 if (mbedtls_md_psa_alg_from_type((mbedtls_md_type_t) ssl->handshake->ciphersuite_info->mac) in ssl_tls13_parse_server_pre_shared_key_ext()
1240 const mbedtls_ssl_ciphersuite_t *ciphersuite_info; in mbedtls_ssl_tls13_finalize_client_hello() local
1271 ciphersuite_info = mbedtls_ssl_ciphersuite_from_id( in mbedtls_ssl_tls13_finalize_client_hello()
1273 ssl->handshake->ciphersuite_info = ciphersuite_info; in mbedtls_ssl_tls13_finalize_client_hello()
1597 const mbedtls_ssl_ciphersuite_t *ciphersuite_info; in ssl_tls13_parse_server_hello() local
1667 ciphersuite_info = mbedtls_ssl_ciphersuite_from_id(cipher_suite); in ssl_tls13_parse_server_hello()
[all …]
Dssl_tls13_server.c28 const mbedtls_ssl_ciphersuite_t *ciphersuite_info; in ssl_tls13_validate_peer_ciphersuite() local
33 ciphersuite_info = mbedtls_ssl_ciphersuite_from_id(cipher_suite); in ssl_tls13_validate_peer_ciphersuite()
34 if ((mbedtls_ssl_validate_ciphersuite(ssl, ciphersuite_info, in ssl_tls13_validate_peer_ciphersuite()
39 return ciphersuite_info; in ssl_tls13_validate_peer_ciphersuite()
492 const mbedtls_ssl_ciphersuite_t *ciphersuite_info; member
650 &psk->ciphersuite_info); in ssl_tls13_parse_pre_shared_key_ext()
652 if (psk->ciphersuite_info == NULL) { in ssl_tls13_parse_pre_shared_key_ext()
669 mbedtls_md_psa_alg_from_type((mbedtls_md_type_t) psk->ciphersuite_info->mac)); in ssl_tls13_parse_pre_shared_key_ext()
1438 0, PSA_ALG_NONE, &handshake->ciphersuite_info); in ssl_tls13_parse_client_hello()
1440 if (handshake->ciphersuite_info == NULL) { in ssl_tls13_parse_client_hello()
[all …]
Dssl_tls.c783 const mbedtls_ssl_ciphersuite_t *ciphersuite_info) in mbedtls_ssl_optimize_checksum() argument
785 ((void) ciphersuite_info); in mbedtls_ssl_optimize_checksum()
788 if (ciphersuite_info->mac == MBEDTLS_MD_SHA384) { in mbedtls_ssl_optimize_checksum()
793 if (ciphersuite_info->mac != MBEDTLS_MD_SHA384) { in mbedtls_ssl_optimize_checksum()
1763 const mbedtls_ssl_ciphersuite_t *ciphersuite_info = in mbedtls_ssl_set_session() local
1767 ssl, ciphersuite_info, MBEDTLS_SSL_VERSION_TLS1_3, in mbedtls_ssl_set_session()
2264 if (ssl->handshake->ciphersuite_info->mac == MBEDTLS_MD_SHA384) { in mbedtls_ssl_set_hs_psk()
7067 if (mbedtls_ssl_ciphersuite_uses_psk(handshake->ciphersuite_info) == 1) { in ssl_compute_master()
7074 mbedtls_md_type_t hash_alg = (mbedtls_md_type_t) handshake->ciphersuite_info->mac; in ssl_compute_master()
7089 switch (handshake->ciphersuite_info->key_exchange) { in ssl_compute_master()
[all …]
Dssl_client.c352 const mbedtls_ssl_ciphersuite_t *ciphersuite_info; in ssl_write_client_hello_cipher_suites() local
354 ciphersuite_info = mbedtls_ssl_ciphersuite_from_id(cipher_suite); in ssl_write_client_hello_cipher_suites()
356 if (mbedtls_ssl_validate_ciphersuite(ssl, ciphersuite_info, in ssl_write_client_hello_cipher_suites()
366 *tls12_uses_ec |= mbedtls_ssl_ciphersuite_uses_ec(ciphersuite_info); in ssl_write_client_hello_cipher_suites()
371 ciphersuite_info->name)); in ssl_write_client_hello_cipher_suites()
Dssl_tls13_generic.c360 (mbedtls_md_type_t) ssl->handshake->ciphersuite_info->mac, in mbedtls_ssl_tls13_process_certificate_verify()
1026 ssl, (mbedtls_md_type_t) ssl->handshake->ciphersuite_info->mac, in ssl_tls13_write_certificate_verify_body()
1523 const mbedtls_ssl_ciphersuite_t *ciphersuite_info = in mbedtls_ssl_reset_transcript_for_hrr() local
1524 ssl->handshake->ciphersuite_info; in mbedtls_ssl_reset_transcript_for_hrr()
1528 ret = mbedtls_ssl_get_handshake_transcript(ssl, (mbedtls_md_type_t) ciphersuite_info->mac, in mbedtls_ssl_reset_transcript_for_hrr()
Dssl_misc.h717 mbedtls_ssl_ciphersuite_t const *ciphersuite_info; member
1485 const mbedtls_ssl_ciphersuite_t *ciphersuite_info);
/mbedtls-3.7.0/programs/ssl/
Dssl_context_info.c515 const struct mbedtls_ssl_ciphersuite_t *ciphersuite_info; in print_deserialized_ssl_session() local
544 ciphersuite_info = mbedtls_ssl_ciphersuite_from_id(ciphersuite_id); in print_deserialized_ssl_session()
545 if (ciphersuite_info == NULL) { in print_deserialized_ssl_session()
552 printf("\tciphersuite : %s\n", mbedtls_ssl_ciphersuite_get_name(ciphersuite_info)); in print_deserialized_ssl_session()
553 printf("\tcipher flags : 0x%02X\n", ciphersuite_info->MBEDTLS_PRIVATE(flags)); in print_deserialized_ssl_session()
557 cipher_info = mbedtls_cipher_info_from_type(ciphersuite_info->MBEDTLS_PRIVATE(cipher)); in print_deserialized_ssl_session()
564 printf("\tcipher type : %d\n", ciphersuite_info->MBEDTLS_PRIVATE(cipher)); in print_deserialized_ssl_session()
568 md_info = mbedtls_md_info_from_type(ciphersuite_info->MBEDTLS_PRIVATE(mac)); in print_deserialized_ssl_session()
Dssl_client2.c1494 const mbedtls_ssl_ciphersuite_t *ciphersuite_info; in main() local
1495 ciphersuite_info = in main()
1499 ciphersuite_info->min_tls_version > opt.max_version) { in main()
1505 ciphersuite_info->max_tls_version < opt.min_version) { in main()
1514 opt.max_version > ciphersuite_info->max_tls_version) { in main()
1515 opt.max_version = ciphersuite_info->max_tls_version; in main()
1517 if (opt.min_version < ciphersuite_info->min_tls_version) { in main()
1518 opt.min_version = ciphersuite_info->min_tls_version; in main()
1531 if (ciphersuite_info->mac == MBEDTLS_MD_SHA384) { in main()
2244 const mbedtls_ssl_ciphersuite_t *ciphersuite_info; in main() local
[all …]
Dssl_server2.c2375 const mbedtls_ssl_ciphersuite_t *ciphersuite_info; in main() local
2376 ciphersuite_info = in main()
2380 ciphersuite_info->min_tls_version > opt.max_version) { in main()
2386 ciphersuite_info->max_tls_version < opt.min_version) { in main()
2395 opt.max_version > ciphersuite_info->max_tls_version) { in main()
2396 opt.max_version = ciphersuite_info->max_tls_version; in main()
2398 if (opt.min_version < ciphersuite_info->min_tls_version) { in main()
2399 opt.min_version = ciphersuite_info->min_tls_version; in main()
2407 if (ciphersuite_info->mac == MBEDTLS_MD_SHA384) { in main()
3526 const mbedtls_ssl_ciphersuite_t *ciphersuite_info; in main() local
[all …]
/mbedtls-3.7.0/tests/src/test_helpers/
Dssl_helpers.c1039 const mbedtls_ssl_ciphersuite_t *ciphersuite_info; in set_ciphersuite() local
1043 ciphersuite_info = in set_ciphersuite()
1046 TEST_ASSERT(ciphersuite_info != NULL); in set_ciphersuite()
1047 TEST_ASSERT(ciphersuite_info->min_tls_version <= conf->max_tls_version); in set_ciphersuite()
1048 TEST_ASSERT(ciphersuite_info->max_tls_version >= conf->min_tls_version); in set_ciphersuite()
1050 if (conf->max_tls_version > ciphersuite_info->max_tls_version) { in set_ciphersuite()
1051 conf->max_tls_version = (mbedtls_ssl_protocol_version) ciphersuite_info->max_tls_version; in set_ciphersuite()
1053 if (conf->min_tls_version < ciphersuite_info->min_tls_version) { in set_ciphersuite()
1054 conf->min_tls_version = (mbedtls_ssl_protocol_version) ciphersuite_info->min_tls_version; in set_ciphersuite()
/mbedtls-3.7.0/tests/suites/
Dtest_suite_ssl.function2442 const mbedtls_ssl_ciphersuite_t *ciphersuite_info;
2474 ciphersuite_info = mbedtls_ssl_ciphersuite_from_id(ciphersuite_id);
2475 if (ciphersuite_info != NULL) {
2476 TEST_ASSERT(mbedtls_ssl_ciphersuite_get_id(ciphersuite_info) == ciphersuite_id);