Lines Matching refs:client_tx
16 unsigned char *client_rx, *client_tx; in tv_kx() local
40 client_tx = (unsigned char *) sodium_malloc(crypto_kx_SESSIONKEYBYTES); in tv_kx()
42 assert(crypto_kx_client_session_keys(client_rx, client_tx, in tv_kx()
45 if (crypto_kx_client_session_keys(client_rx, client_tx, in tv_kx()
60 if (memcmp(server_rx, client_tx, crypto_kx_SESSIONKEYBYTES) != 0 || in tv_kx()
70 if (memcmp(server_rx, client_tx, crypto_kx_SESSIONKEYBYTES) == 0 && in tv_kx()
80 if (memcmp(server_rx, client_tx, crypto_kx_SESSIONKEYBYTES) == 0 || in tv_kx()
97 if (crypto_kx_client_session_keys(client_rx, client_tx, in tv_kx()
103 sodium_bin2hex(hex, sizeof hex, client_tx, crypto_kx_SESSIONKEYBYTES); in tv_kx()
107 randombytes_buf(client_tx, crypto_kx_SESSIONKEYBYTES); in tv_kx()
112 crypto_kx_client_session_keys(NULL, client_tx, in tv_kx()
120 assert(memcmp(client_rx, client_tx, crypto_kx_SESSIONKEYBYTES) == 0); in tv_kx()
121 assert(memcmp(client_tx, server_rx, crypto_kx_SESSIONKEYBYTES) == 0); in tv_kx()
125 sodium_free(client_tx); in tv_kx()