Searched refs:client_tx (Results 1 – 1 of 1) sorted by relevance
/freebsd/sys/contrib/libsodium/test/default/ |
H A D | kx.c | 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() [all …]
|