Searched refs:dh_secret (Results 1 – 4 of 4) sorted by relevance
406 os_free(conn->dh_secret); in tls_write_server_key_exchange()408 conn->dh_secret = os_malloc(conn->dh_secret_len); in tls_write_server_key_exchange()409 if (conn->dh_secret == NULL) { in tls_write_server_key_exchange()416 if (random_get_bytes(conn->dh_secret, conn->dh_secret_len)) { in tls_write_server_key_exchange()421 os_free(conn->dh_secret); in tls_write_server_key_exchange()422 conn->dh_secret = NULL; in tls_write_server_key_exchange()426 if (os_memcmp(conn->dh_secret, dh_p, conn->dh_secret_len) > 0) in tls_write_server_key_exchange()427 conn->dh_secret[0] = 0; /* make sure secret < p */ in tls_write_server_key_exchange()429 pos = conn->dh_secret; in tls_write_server_key_exchange()430 while (pos + 1 < conn->dh_secret + conn->dh_secret_len && *pos == 0) in tls_write_server_key_exchange()[all …]
755 conn->dh_secret == NULL) { in tls_process_client_key_exchange_dh()775 if (crypto_mod_exp(dh_yc, dh_yc_len, conn->dh_secret, in tls_process_client_key_exchange_dh()786 os_memset(conn->dh_secret, 0, conn->dh_secret_len); in tls_process_client_key_exchange_dh()787 os_free(conn->dh_secret); in tls_process_client_key_exchange_dh()788 conn->dh_secret = NULL; in tls_process_client_key_exchange_dh()
64 u8 *dh_secret; member
433 os_free(conn->dh_secret); in tlsv1_server_clear_data()434 conn->dh_secret = NULL; in tlsv1_server_clear_data()