Searched refs:dh_secret (Results 1 – 4 of 4) sorted by relevance
403 os_free(conn->dh_secret); in tls_write_server_key_exchange()405 conn->dh_secret = os_malloc(conn->dh_secret_len); in tls_write_server_key_exchange()406 if (conn->dh_secret == NULL) { in tls_write_server_key_exchange()413 if (random_get_bytes(conn->dh_secret, conn->dh_secret_len)) { in tls_write_server_key_exchange()418 os_free(conn->dh_secret); in tls_write_server_key_exchange()419 conn->dh_secret = NULL; in tls_write_server_key_exchange()423 if (os_memcmp(conn->dh_secret, dh_p, conn->dh_secret_len) > 0) in tls_write_server_key_exchange()424 conn->dh_secret[0] = 0; /* make sure secret < p */ in tls_write_server_key_exchange()426 pos = conn->dh_secret; in tls_write_server_key_exchange()427 while (pos + 1 < conn->dh_secret + conn->dh_secret_len && *pos == 0) in tls_write_server_key_exchange()[all …]
62 u8 *dh_secret; member
727 conn->dh_secret == NULL) { in tls_process_client_key_exchange_dh()747 if (crypto_mod_exp(dh_yc, dh_yc_len, conn->dh_secret, in tls_process_client_key_exchange_dh()758 os_memset(conn->dh_secret, 0, conn->dh_secret_len); in tls_process_client_key_exchange_dh()759 os_free(conn->dh_secret); in tls_process_client_key_exchange_dh()760 conn->dh_secret = NULL; in tls_process_client_key_exchange_dh()
430 os_free(conn->dh_secret); in tlsv1_server_clear_data()431 conn->dh_secret = NULL; in tlsv1_server_clear_data()