Lines Matching refs:ciphersuite_info

688                          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()
798 const mbedtls_ssl_ciphersuite_t **ciphersuite_info) in ssl_ciphersuite_match() argument
881 *ciphersuite_info = suite_info; in ssl_ciphersuite_match()
904 const mbedtls_ssl_ciphersuite_t *ciphersuite_info; in ssl_parse_client_hello() local
1600 ciphersuite_info = NULL; in ssl_parse_client_hello()
1612 &ciphersuite_info)) != 0) { in ssl_parse_client_hello()
1616 if (ciphersuite_info != NULL) { in ssl_parse_client_hello()
1631 &ciphersuite_info)) != 0) { in ssl_parse_client_hello()
1635 if (ciphersuite_info != NULL) { in ssl_parse_client_hello()
1656 MBEDTLS_SSL_DEBUG_MSG(2, ("selected ciphersuite: %s", ciphersuite_info->name)); in ssl_parse_client_hello()
1659 ssl->handshake->ciphersuite_info = ciphersuite_info; in ssl_parse_client_hello()
1672 mbedtls_pk_type_t sig_alg = mbedtls_ssl_get_ciphersuite_sig_alg(ciphersuite_info); in ssl_parse_client_hello()
1937 if (ssl->handshake->ciphersuite_info->key_exchange != in ssl_write_ecjpake_kkpp_ext()
2400 const mbedtls_ssl_ciphersuite_t *ciphersuite_info = in ssl_write_certificate_request() local
2401 ssl->handshake->ciphersuite_info; in ssl_write_certificate_request()
2405 if (!mbedtls_ssl_ciphersuite_cert_req_allowed(ciphersuite_info)) { in ssl_write_certificate_request()
2419 const mbedtls_ssl_ciphersuite_t *ciphersuite_info = in ssl_write_certificate_request() local
2420 ssl->handshake->ciphersuite_info; in ssl_write_certificate_request()
2439 if (!mbedtls_ssl_ciphersuite_cert_req_allowed(ciphersuite_info) || in ssl_write_certificate_request()
2799 const mbedtls_ssl_ciphersuite_t *ciphersuite_info = in ssl_prepare_server_key_exchange() local
2800 ssl->handshake->ciphersuite_info; in ssl_prepare_server_key_exchange()
2808 (void) ciphersuite_info; /* unused in some configurations */ in ssl_prepare_server_key_exchange()
2833 if (ciphersuite_info->key_exchange == MBEDTLS_KEY_EXCHANGE_ECJPAKE) { in ssl_prepare_server_key_exchange()
2897 if (ciphersuite_info->key_exchange == MBEDTLS_KEY_EXCHANGE_DHE_PSK || in ssl_prepare_server_key_exchange()
2898 ciphersuite_info->key_exchange == MBEDTLS_KEY_EXCHANGE_ECDHE_PSK) { in ssl_prepare_server_key_exchange()
2909 if (mbedtls_ssl_ciphersuite_uses_dhe(ciphersuite_info)) { in ssl_prepare_server_key_exchange()
2960 if (mbedtls_ssl_ciphersuite_uses_ecdhe(ciphersuite_info)) { in ssl_prepare_server_key_exchange()
3116 if (mbedtls_ssl_ciphersuite_uses_server_signature(ciphersuite_info)) { in ssl_prepare_server_key_exchange()
3135 mbedtls_ssl_get_ciphersuite_sig_pk_alg(ciphersuite_info); in ssl_prepare_server_key_exchange()
3252 const mbedtls_ssl_ciphersuite_t *ciphersuite_info = in ssl_write_server_key_exchange() local
3253 ssl->handshake->ciphersuite_info; in ssl_write_server_key_exchange()
3261 if (mbedtls_ssl_ciphersuite_no_pfs(ciphersuite_info)) { in ssl_write_server_key_exchange()
3265 if (mbedtls_ssl_ciphersuite_uses_ecdh(ciphersuite_info)) { in ssl_write_server_key_exchange()
3667 const mbedtls_ssl_ciphersuite_t *ciphersuite_info; in ssl_parse_client_key_exchange() local
3670 ciphersuite_info = ssl->handshake->ciphersuite_info; in ssl_parse_client_key_exchange()
3677 if ((ciphersuite_info->key_exchange == MBEDTLS_KEY_EXCHANGE_RSA_PSK || in ssl_parse_client_key_exchange()
3678 ciphersuite_info->key_exchange == MBEDTLS_KEY_EXCHANGE_RSA) && in ssl_parse_client_key_exchange()
3705 if (ciphersuite_info->key_exchange == MBEDTLS_KEY_EXCHANGE_DHE_RSA) { in ssl_parse_client_key_exchange()
3732 if (ciphersuite_info->key_exchange == MBEDTLS_KEY_EXCHANGE_ECDHE_RSA || in ssl_parse_client_key_exchange()
3733 ciphersuite_info->key_exchange == MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA || in ssl_parse_client_key_exchange()
3734 ciphersuite_info->key_exchange == MBEDTLS_KEY_EXCHANGE_ECDH_RSA || in ssl_parse_client_key_exchange()
3735 ciphersuite_info->key_exchange == MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA) { in ssl_parse_client_key_exchange()
3825 if (ciphersuite_info->key_exchange == MBEDTLS_KEY_EXCHANGE_PSK) { in ssl_parse_client_key_exchange()
3838 (mbedtls_key_exchange_type_t) ciphersuite_info-> in ssl_parse_client_key_exchange()
3847 if (ciphersuite_info->key_exchange == MBEDTLS_KEY_EXCHANGE_RSA_PSK) { in ssl_parse_client_key_exchange()
3871 (mbedtls_key_exchange_type_t) ciphersuite_info-> in ssl_parse_client_key_exchange()
3880 if (ciphersuite_info->key_exchange == MBEDTLS_KEY_EXCHANGE_DHE_PSK) { in ssl_parse_client_key_exchange()
3913 (mbedtls_key_exchange_type_t) ciphersuite_info-> in ssl_parse_client_key_exchange()
3922 if (ciphersuite_info->key_exchange == MBEDTLS_KEY_EXCHANGE_ECDHE_PSK) { in ssl_parse_client_key_exchange()
4021 (mbedtls_key_exchange_type_t) ciphersuite_info-> in ssl_parse_client_key_exchange()
4030 if (ciphersuite_info->key_exchange == MBEDTLS_KEY_EXCHANGE_RSA) { in ssl_parse_client_key_exchange()
4038 if (ciphersuite_info->key_exchange == MBEDTLS_KEY_EXCHANGE_ECJPAKE) { in ssl_parse_client_key_exchange()
4088 const mbedtls_ssl_ciphersuite_t *ciphersuite_info = in ssl_parse_certificate_verify() local
4089 ssl->handshake->ciphersuite_info; in ssl_parse_certificate_verify()
4093 if (!mbedtls_ssl_ciphersuite_cert_req_allowed(ciphersuite_info)) { in ssl_parse_certificate_verify()
4113 const mbedtls_ssl_ciphersuite_t *ciphersuite_info = in ssl_parse_certificate_verify() local
4114 ssl->handshake->ciphersuite_info; in ssl_parse_certificate_verify()
4119 if (!mbedtls_ssl_ciphersuite_cert_req_allowed(ciphersuite_info)) { in ssl_parse_certificate_verify()