Home
last modified time | relevance | path

Searched refs:dhm_ctx (Results 1 – 5 of 5) sorted by relevance

/third_party/mbedtls/library/
Dssl_tls12_client.c1684 if ((ret = mbedtls_dhm_read_params(&ssl->handshake->dhm_ctx, in ssl_parse_server_dh_params()
1690 dhm_actual_bitlen = mbedtls_dhm_get_bitlen(&ssl->handshake->dhm_ctx); in ssl_parse_server_dh_params()
1698 MBEDTLS_SSL_DEBUG_MPI(3, "DHM: P ", &ssl->handshake->dhm_ctx.P); in ssl_parse_server_dh_params()
1699 MBEDTLS_SSL_DEBUG_MPI(3, "DHM: G ", &ssl->handshake->dhm_ctx.G); in ssl_parse_server_dh_params()
1700 MBEDTLS_SSL_DEBUG_MPI(3, "DHM: GY", &ssl->handshake->dhm_ctx.GY); in ssl_parse_server_dh_params()
2716 content_len = mbedtls_dhm_get_len(&ssl->handshake->dhm_ctx); in ssl_write_client_key_exchange()
2721 ret = mbedtls_dhm_make_public(&ssl->handshake->dhm_ctx, in ssl_write_client_key_exchange()
2722 (int) mbedtls_dhm_get_len(&ssl->handshake->dhm_ctx), in ssl_write_client_key_exchange()
2730 MBEDTLS_SSL_DEBUG_MPI(3, "DHM: X ", &ssl->handshake->dhm_ctx.X); in ssl_write_client_key_exchange()
2731 MBEDTLS_SSL_DEBUG_MPI(3, "DHM: GX", &ssl->handshake->dhm_ctx.GX); in ssl_write_client_key_exchange()
[all …]
Dssl_tls12_server.c2849 if ((ret = mbedtls_dhm_set_group(&ssl->handshake->dhm_ctx, in ssl_prepare_server_key_exchange()
2857 &ssl->handshake->dhm_ctx, in ssl_prepare_server_key_exchange()
2858 (int) mbedtls_dhm_get_len(&ssl->handshake->dhm_ctx), in ssl_prepare_server_key_exchange()
2871 MBEDTLS_SSL_DEBUG_MPI(3, "DHM: X ", &ssl->handshake->dhm_ctx.X); in ssl_prepare_server_key_exchange()
2872 MBEDTLS_SSL_DEBUG_MPI(3, "DHM: P ", &ssl->handshake->dhm_ctx.P); in ssl_prepare_server_key_exchange()
2873 MBEDTLS_SSL_DEBUG_MPI(3, "DHM: G ", &ssl->handshake->dhm_ctx.G); in ssl_prepare_server_key_exchange()
2874 MBEDTLS_SSL_DEBUG_MPI(3, "DHM: GX", &ssl->handshake->dhm_ctx.GX); in ssl_prepare_server_key_exchange()
3326 if ((ret = mbedtls_dhm_read_public(&ssl->handshake->dhm_ctx, *p, n)) != 0) { in ssl_parse_client_dh_public()
3333 MBEDTLS_SSL_DEBUG_MPI(3, "DHM: GY", &ssl->handshake->dhm_ctx.GY); in ssl_parse_client_dh_public()
3644 if ((ret = mbedtls_dhm_calc_secret(&ssl->handshake->dhm_ctx, in ssl_parse_client_key_exchange()
[all …]
Dssl_tls.c987 mbedtls_dhm_init(&handshake->dhm_ctx); in ssl_handshake_params_init()
2878 int mbedtls_ssl_conf_dh_param_ctx(mbedtls_ssl_config *conf, mbedtls_dhm_context *dhm_ctx) in mbedtls_ssl_conf_dh_param_ctx() argument
2885 if ((ret = mbedtls_dhm_get_value(dhm_ctx, MBEDTLS_DHM_PARAM_P, in mbedtls_ssl_conf_dh_param_ctx()
2887 (ret = mbedtls_dhm_get_value(dhm_ctx, MBEDTLS_DHM_PARAM_G, in mbedtls_ssl_conf_dh_param_ctx()
4137 mbedtls_dhm_free(&handshake->dhm_ctx); in mbedtls_ssl_handshake_free()
6827 if ((ret = mbedtls_dhm_calc_secret(&ssl->handshake->dhm_ctx, in mbedtls_ssl_psk_derive_premaster()
6836 MBEDTLS_SSL_DEBUG_MPI(3, "DHM: K ", &ssl->handshake->dhm_ctx.K); in mbedtls_ssl_psk_derive_premaster()
Dssl_misc.h752 mbedtls_dhm_context dhm_ctx; /*!< DHM key exchange */ member
/third_party/mbedtls/include/mbedtls/
Dssl.h3607 int mbedtls_ssl_conf_dh_param_ctx(mbedtls_ssl_config *conf, mbedtls_dhm_context *dhm_ctx);