Home
last modified time | relevance | path

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

/mbedtls-3.4.0/library/
Dssl_tls12_server.c710 const mbedtls_ssl_ciphersuite_t * ciphersuite_info ) in ssl_pick_cert() argument
715 mbedtls_ssl_get_ciphersuite_sig_pk_psa_alg( ciphersuite_info ); in ssl_pick_cert()
717 mbedtls_ssl_get_ciphersuite_sig_pk_psa_usage( ciphersuite_info ); in ssl_pick_cert()
720 mbedtls_ssl_get_ciphersuite_sig_pk_alg( ciphersuite_info ); in ssl_pick_cert()
782 if( mbedtls_ssl_check_cert_usage( cur->cert, ciphersuite_info, in ssl_pick_cert()
822 const mbedtls_ssl_ciphersuite_t **ciphersuite_info ) in ssl_ciphersuite_match() argument
911 *ciphersuite_info = suite_info; in ssl_ciphersuite_match()
934 const mbedtls_ssl_ciphersuite_t *ciphersuite_info; in ssl_parse_client_hello() local
1659 ciphersuite_info = NULL; in ssl_parse_client_hello()
1672 &ciphersuite_info ) ) != 0 ) in ssl_parse_client_hello()
[all …]
Dssl_tls13_keys.c637 handshake->ciphersuite_info->mac ); in mbedtls_ssl_tls13_key_schedule_stage_application()
746 mbedtls_md_type_t const md_type = ssl->handshake->ciphersuite_info->mac; in mbedtls_ssl_tls13_calculate_verify_data()
749 ssl->handshake->ciphersuite_info->mac ); in mbedtls_ssl_tls13_calculate_verify_data()
896 const mbedtls_ssl_ciphersuite_t *ciphersuite_info; in mbedtls_ssl_tls13_populate_transform() local
915 ciphersuite_info = mbedtls_ssl_ciphersuite_from_id( ciphersuite ); in mbedtls_ssl_tls13_populate_transform()
916 if( ciphersuite_info == NULL ) in mbedtls_ssl_tls13_populate_transform()
924 cipher_info = mbedtls_cipher_info_from_type( ciphersuite_info->cipher ); in mbedtls_ssl_tls13_populate_transform()
928 ciphersuite_info->cipher ) ); in mbedtls_ssl_tls13_populate_transform()
1000 if( ( ciphersuite_info->flags & MBEDTLS_CIPHERSUITE_SHORT_TAG ) != 0 ) in mbedtls_ssl_tls13_populate_transform()
1021 if( ( status = mbedtls_ssl_cipher_to_psa( ciphersuite_info->cipher, in mbedtls_ssl_tls13_populate_transform()
[all …]
Dssl_tls12_client.c896 if( ssl->handshake->ciphersuite_info->key_exchange != in ssl_parse_ecjpake_kkpp()
1403 ssl->handshake->ciphersuite_info = mbedtls_ssl_ciphersuite_from_id( i ); in ssl_parse_server_hello()
1404 if( ssl->handshake->ciphersuite_info == NULL ) in ssl_parse_server_hello()
1413 mbedtls_ssl_optimize_checksum( ssl, ssl->handshake->ciphersuite_info ); in ssl_parse_server_hello()
2166 const mbedtls_ssl_ciphersuite_t *ciphersuite_info = in ssl_parse_server_key_exchange() local
2167 ssl->handshake->ciphersuite_info; in ssl_parse_server_key_exchange()
2173 if( ciphersuite_info->key_exchange == MBEDTLS_KEY_EXCHANGE_RSA ) in ssl_parse_server_key_exchange()
2185 if( ciphersuite_info->key_exchange == MBEDTLS_KEY_EXCHANGE_ECDH_RSA || in ssl_parse_server_key_exchange()
2186 ciphersuite_info->key_exchange == MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA ) in ssl_parse_server_key_exchange()
2237 if( ciphersuite_info->key_exchange == MBEDTLS_KEY_EXCHANGE_PSK || in ssl_parse_server_key_exchange()
[all …]
Dssl_tls13_server.c48 const mbedtls_ssl_ciphersuite_t *ciphersuite_info; in ssl_tls13_validate_peer_ciphersuite() local
52 ciphersuite_info = mbedtls_ssl_ciphersuite_from_id( cipher_suite ); in ssl_tls13_validate_peer_ciphersuite()
53 if( ( mbedtls_ssl_validate_ciphersuite( ssl, ciphersuite_info, in ssl_tls13_validate_peer_ciphersuite()
59 return( ciphersuite_info ); in ssl_tls13_validate_peer_ciphersuite()
387 const mbedtls_ssl_ciphersuite_t *ciphersuite_info; in ssl_tls13_select_ciphersuite_for_psk() local
390 ciphersuite_info = ssl_tls13_validate_peer_ciphersuite( ssl, in ssl_tls13_select_ciphersuite_for_psk()
392 if( ciphersuite_info == NULL ) in ssl_tls13_select_ciphersuite_for_psk()
398 if( psk_hash_alg == mbedtls_psa_translate_md( ciphersuite_info->mac ) ) in ssl_tls13_select_ciphersuite_for_psk()
401 *selected_ciphersuite_info = ciphersuite_info; in ssl_tls13_select_ciphersuite_for_psk()
425 const mbedtls_ssl_ciphersuite_t *ciphersuite_info; in ssl_tls13_select_ciphersuite_for_resumption() local
[all …]
Dssl_tls13_client.c686 const mbedtls_ssl_ciphersuite_t *ciphersuite_info = NULL; in ssl_tls13_get_ciphersuite_hash_alg() local
687 ciphersuite_info = mbedtls_ssl_ciphersuite_from_id( ciphersuite ); in ssl_tls13_get_ciphersuite_hash_alg()
689 if( ciphersuite_info != NULL ) in ssl_tls13_get_ciphersuite_hash_alg()
690 return( mbedtls_psa_translate_md( ciphersuite_info->mac ) ); in ssl_tls13_get_ciphersuite_hash_alg()
1542 const mbedtls_ssl_ciphersuite_t *ciphersuite_info; in ssl_tls13_parse_server_hello() local
1615 ciphersuite_info = mbedtls_ssl_ciphersuite_from_id( cipher_suite ); in ssl_tls13_parse_server_hello()
1619 if( ( mbedtls_ssl_validate_ciphersuite( ssl, ciphersuite_info, in ssl_tls13_parse_server_hello()
1646 mbedtls_ssl_optimize_checksum( ssl, ciphersuite_info ); in ssl_tls13_parse_server_hello()
1648 handshake->ciphersuite_info = ciphersuite_info; in ssl_tls13_parse_server_hello()
1652 cipher_suite, ciphersuite_info->name ) ); in ssl_tls13_parse_server_hello()
[all …]
Dssl_tls.c764 const mbedtls_ssl_ciphersuite_t *ciphersuite_info ) in mbedtls_ssl_optimize_checksum() argument
766 ((void) ciphersuite_info); in mbedtls_ssl_optimize_checksum()
769 if( ciphersuite_info->mac == MBEDTLS_MD_SHA384 ) in mbedtls_ssl_optimize_checksum()
774 if( ciphersuite_info->mac != MBEDTLS_MD_SHA384 ) in mbedtls_ssl_optimize_checksum()
1664 const mbedtls_ssl_ciphersuite_t *ciphersuite_info = in mbedtls_ssl_set_session() local
1668 ssl, ciphersuite_info, MBEDTLS_SSL_VERSION_TLS1_3, in mbedtls_ssl_set_session()
2114 if( ssl->handshake->ciphersuite_info->mac == MBEDTLS_MD_SHA384 ) in mbedtls_ssl_set_hs_psk()
6157 if( mbedtls_ssl_ciphersuite_uses_psk( handshake->ciphersuite_info ) == 1 ) in ssl_compute_master()
6165 mbedtls_md_type_t hash_alg = handshake->ciphersuite_info->mac; in ssl_compute_master()
6179 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()
364 *tls12_uses_ec |= mbedtls_ssl_ciphersuite_uses_ec( ciphersuite_info ); in ssl_write_client_hello_cipher_suites()
369 ciphersuite_info->name ) ); in ssl_write_client_hello_cipher_suites()
Dssl_tls13_generic.c313 ssl->handshake->ciphersuite_info->mac, in mbedtls_ssl_tls13_process_certificate_verify()
1000 ssl->handshake->ciphersuite_info->mac, in ssl_tls13_write_certificate_verify_body()
1426 const mbedtls_ssl_ciphersuite_t *ciphersuite_info; in mbedtls_ssl_reset_transcript_for_hrr() local
1428 ciphersuite_info = mbedtls_ssl_ciphersuite_from_id( cipher_suite ); in mbedtls_ssl_reset_transcript_for_hrr()
1432 ret = mbedtls_ssl_get_handshake_transcript( ssl, ciphersuite_info->mac, in mbedtls_ssl_reset_transcript_for_hrr()
1450 if( ciphersuite_info->mac == MBEDTLS_MD_SHA256 ) in mbedtls_ssl_reset_transcript_for_hrr()
1464 if( ciphersuite_info->mac == MBEDTLS_MD_SHA384 ) in mbedtls_ssl_reset_transcript_for_hrr()
Dssl_misc.h712 mbedtls_ssl_ciphersuite_t const *ciphersuite_info; member
1463 const mbedtls_ssl_ciphersuite_t *ciphersuite_info );
/mbedtls-3.4.0/programs/ssl/
Dssl_context_info.c596 const struct mbedtls_ssl_ciphersuite_t * ciphersuite_info; in print_deserialized_ssl_session() local
626 ciphersuite_info = mbedtls_ssl_ciphersuite_from_id( ciphersuite_id ); in print_deserialized_ssl_session()
627 if( ciphersuite_info == NULL ) in print_deserialized_ssl_session()
638 printf( "\tciphersuite : %s\n", ciphersuite_info->name ); in print_deserialized_ssl_session()
639 printf( "\tcipher flags : 0x%02X\n", ciphersuite_info->flags ); in print_deserialized_ssl_session()
641 cipher_info = mbedtls_cipher_info_from_type( ciphersuite_info->cipher ); in print_deserialized_ssl_session()
651 md_info = mbedtls_md_info_from_type( ciphersuite_info->mac ); in print_deserialized_ssl_session()
Dssl_client2.c1488 const mbedtls_ssl_ciphersuite_t *ciphersuite_info; in main() local
1489 ciphersuite_info = in main()
1493 ciphersuite_info->min_tls_version > opt.max_version ) in main()
1500 ciphersuite_info->max_tls_version < opt.min_version ) in main()
1510 opt.max_version > ciphersuite_info->max_tls_version ) in main()
1512 opt.max_version = ciphersuite_info->max_tls_version; in main()
1514 if( opt.min_version < ciphersuite_info->min_tls_version ) in main()
1516 opt.min_version = ciphersuite_info->min_tls_version; in main()
1529 if( ciphersuite_info->mac == MBEDTLS_MD_SHA384 ) in main()
2323 const mbedtls_ssl_ciphersuite_t *ciphersuite_info; in main() local
[all …]
Dssl_server2.c2347 const mbedtls_ssl_ciphersuite_t *ciphersuite_info; in main() local
2348 ciphersuite_info = in main()
2352 ciphersuite_info->min_tls_version > opt.max_version ) in main()
2359 ciphersuite_info->max_tls_version < opt.min_version ) in main()
2369 opt.max_version > ciphersuite_info->max_tls_version ) in main()
2371 opt.max_version = ciphersuite_info->max_tls_version; in main()
2373 if( opt.min_version < ciphersuite_info->min_tls_version ) in main()
2375 opt.min_version = ciphersuite_info->min_tls_version; in main()
2384 if( ciphersuite_info->mac == MBEDTLS_MD_SHA384 ) in main()
3621 const mbedtls_ssl_ciphersuite_t *ciphersuite_info; in main() local
[all …]
/mbedtls-3.4.0/tests/suites/
Dtest_suite_ssl.function1285 const mbedtls_ssl_ciphersuite_t *ciphersuite_info;
1289 ciphersuite_info =
1292 TEST_ASSERT( ciphersuite_info != NULL );
1293 TEST_ASSERT( ciphersuite_info->min_tls_version <= conf->max_tls_version );
1294 TEST_ASSERT( ciphersuite_info->max_tls_version >= conf->min_tls_version );
1296 if( conf->max_tls_version > ciphersuite_info->max_tls_version )
1298 conf->max_tls_version = ciphersuite_info->max_tls_version;
1300 if( conf->min_tls_version < ciphersuite_info->min_tls_version )
1302 conf->min_tls_version = ciphersuite_info->min_tls_version;