Home
last modified time | relevance | path

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

/third_party/mbedtls/library/
H A Dssl_tls12_server.c688 const mbedtls_ssl_ciphersuite_t *ciphersuite_info) in ssl_pick_cert()
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()
792 * Sets ciphersuite_info only if the suite matches.
796 const mbedtls_ssl_ciphersuite_t **ciphersuite_info) in ssl_ciphersuite_match()
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 in ssl_parse_client_hello()
687 ssl_pick_cert(mbedtls_ssl_context *ssl, const mbedtls_ssl_ciphersuite_t *ciphersuite_info) ssl_pick_cert() argument
795 ssl_ciphersuite_match(mbedtls_ssl_context *ssl, int suite_id, const mbedtls_ssl_ciphersuite_t **ciphersuite_info) ssl_ciphersuite_match() argument
2398 const mbedtls_ssl_ciphersuite_t *ciphersuite_info = ssl_write_certificate_request() local
2417 const mbedtls_ssl_ciphersuite_t *ciphersuite_info = ssl_write_certificate_request() local
2792 const mbedtls_ssl_ciphersuite_t *ciphersuite_info = ssl_prepare_server_key_exchange() local
3245 const mbedtls_ssl_ciphersuite_t *ciphersuite_info = ssl_write_server_key_exchange() local
3660 const mbedtls_ssl_ciphersuite_t *ciphersuite_info; ssl_parse_client_key_exchange() local
4081 const mbedtls_ssl_ciphersuite_t *ciphersuite_info = ssl_parse_certificate_verify() local
4106 const mbedtls_ssl_ciphersuite_t *ciphersuite_info = ssl_parse_certificate_verify() local
[all...]
H A 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 in mbedtls_ssl_tls13_populate_transform()
1093 ssl_tls13_get_cipher_key_info( const mbedtls_ssl_ciphersuite_t *ciphersuite_info, size_t *key_len, size_t *iv_len) ssl_tls13_get_cipher_key_info() argument
1148 const mbedtls_ssl_ciphersuite_t *ciphersuite_info = ssl_tls13_generate_early_key() local
1348 const mbedtls_ssl_ciphersuite_t *ciphersuite_info = ssl_tls13_generate_handshake_keys() local
[all...]
H A 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 in ssl_parse_server_key_exchange()
2466 const mbedtls_ssl_ciphersuite_t *ciphersuite_info = ssl_parse_certificate_request() local
2488 const mbedtls_ssl_ciphersuite_t *ciphersuite_info = ssl_parse_certificate_request() local
2709 const mbedtls_ssl_ciphersuite_t *ciphersuite_info = ssl_write_client_key_exchange() local
3216 const mbedtls_ssl_ciphersuite_t *ciphersuite_info = ssl_write_certificate_verify() local
3241 const mbedtls_ssl_ciphersuite_t *ciphersuite_info = ssl_write_certificate_verify() local
[all...]
H A 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 in ssl_tls13_parse_client_hello()
3149 mbedtls_ssl_ciphersuite_t *ciphersuite_info; ssl_tls13_prepare_new_session_ticket() local
[all...]
H A 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
2938 const mbedtls_ssl_ciphersuite_t *ciphersuite_info; ssl_tls13_postprocess_new_session_ticket() local
[all...]
H A 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()
H A Dssl_tls.c783 const mbedtls_ssl_ciphersuite_t *ciphersuite_info) in mbedtls_ssl_optimize_checksum()
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()
6999 * (PSA-PSK) ciphersuite_info, psk_opaque
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 in ssl_compute_master()
782 mbedtls_ssl_optimize_checksum(mbedtls_ssl_context *ssl, const mbedtls_ssl_ciphersuite_t *ciphersuite_info) mbedtls_ssl_optimize_checksum() argument
7203 const mbedtls_ssl_ciphersuite_t * const ciphersuite_info = mbedtls_ssl_derive_keys() local
7549 const mbedtls_ssl_ciphersuite_t *ciphersuite_info = mbedtls_ssl_write_certificate() local
7566 const mbedtls_ssl_ciphersuite_t *ciphersuite_info = mbedtls_ssl_parse_certificate() local
7589 const mbedtls_ssl_ciphersuite_t *ciphersuite_info = mbedtls_ssl_write_certificate() local
7904 const mbedtls_ssl_ciphersuite_t *ciphersuite_info = ssl_parse_certificate_coordinate() local
7937 const mbedtls_ssl_ciphersuite_t *ciphersuite_info = ssl_parse_certificate_verify() local
8729 const mbedtls_ssl_ciphersuite_t * const ciphersuite_info = ssl_tls12prf_from_cs() local
8810 const mbedtls_ssl_ciphersuite_t *ciphersuite_info; ssl_tls12_populate_transform() local
[all...]
H A 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()
H A Dssl_misc.h717 mbedtls_ssl_ciphersuite_t const *ciphersuite_info; member
1485 const mbedtls_ssl_ciphersuite_t *ciphersuite_info);
/third_party/mbedtls/programs/ssl/
H A 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()
H A 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...]
H A 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...]
/third_party/mbedtls/tests/src/test_helpers/
H A 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()

Completed in 43 milliseconds