Lines Matching refs:client_tx
16 unsigned char *client_rx, *client_tx;
40 client_tx = (unsigned char *) sodium_malloc(crypto_kx_SESSIONKEYBYTES);
42 assert(crypto_kx_client_session_keys(client_rx, client_tx,
45 if (crypto_kx_client_session_keys(client_rx, client_tx,
60 if (memcmp(server_rx, client_tx, crypto_kx_SESSIONKEYBYTES) != 0 ||
70 if (memcmp(server_rx, client_tx, crypto_kx_SESSIONKEYBYTES) == 0 &&
80 if (memcmp(server_rx, client_tx, crypto_kx_SESSIONKEYBYTES) == 0 ||
97 if (crypto_kx_client_session_keys(client_rx, client_tx,
103 sodium_bin2hex(hex, sizeof hex, client_tx, crypto_kx_SESSIONKEYBYTES);
104 printf("client_tx: [%s]\n", hex);
107 randombytes_buf(client_tx, crypto_kx_SESSIONKEYBYTES);
112 crypto_kx_client_session_keys(NULL, client_tx,
120 assert(memcmp(client_rx, client_tx, crypto_kx_SESSIONKEYBYTES) == 0);
121 assert(memcmp(client_tx, server_rx, crypto_kx_SESSIONKEYBYTES) == 0);
125 sodium_free(client_tx);