Home
last modified time | relevance | path

Searched refs:peer2 (Results 1 – 4 of 4) sorted by relevance

/third_party/ffmpeg/libavformat/tests/
Drtmpdh.c26 FF_DH *peer1 = NULL, *peer2 = NULL; in test_random_shared_secret() local
32 peer2 = ff_dh_init(1024); in test_random_shared_secret()
33 if (!peer1 || !peer2) { in test_random_shared_secret()
39 if ((ret = ff_dh_generate_public_key(peer2)) < 0) in test_random_shared_secret()
43 if ((ret = ff_dh_write_public_key(peer2, pubkey2, sizeof(pubkey2))) < 0) in test_random_shared_secret()
48 if ((ret = ff_dh_compute_shared_secret_key(peer2, pubkey1, sizeof(pubkey1), in test_random_shared_secret()
59 ff_dh_free(peer2); in test_random_shared_secret()
/third_party/openssl/demos/keyexch/
Dx25519.c207 PEER_DATA peer1 = {"peer 1"}, peer2 = {"peer 2"}; in keyexch_x25519() local
219 &peer2) == 0) in keyexch_x25519()
227 if (keyexch_x25519_after(libctx, use_kat, &peer1, peer2.pubk_data) == 0) in keyexch_x25519()
230 if (keyexch_x25519_after(libctx, use_kat, &peer2, peer1.pubk_data) == 0) in keyexch_x25519()
241 if (CRYPTO_memcmp(peer1.secret, peer2.secret, peer1.secret_len) != 0) { in keyexch_x25519()
257 OPENSSL_clear_free(peer2.secret, peer2.secret_len); in keyexch_x25519()
260 EVP_PKEY_free(peer2.privk); in keyexch_x25519()
/third_party/mbedtls/tests/src/test_helpers/
Dssl_helpers.c361 mbedtls_test_mock_socket *peer2, in mbedtls_test_mock_socket_connect() argument
378 peer2->output = in mbedtls_test_mock_socket_connect()
381 if (peer2->output == NULL) { in mbedtls_test_mock_socket_connect()
385 mbedtls_test_ssl_buffer_init(peer2->output); in mbedtls_test_mock_socket_connect()
386 if (0 != (ret = mbedtls_test_ssl_buffer_setup(peer2->output, bufsize))) { in mbedtls_test_mock_socket_connect()
390 peer1->peer = peer2; in mbedtls_test_mock_socket_connect()
391 peer2->peer = peer1; in mbedtls_test_mock_socket_connect()
392 peer1->input = peer2->output; in mbedtls_test_mock_socket_connect()
393 peer2->input = peer1->output; in mbedtls_test_mock_socket_connect()
395 peer1->status = peer2->status = MBEDTLS_MOCK_SOCKET_CONNECTED; in mbedtls_test_mock_socket_connect()
[all …]
/third_party/mbedtls/tests/include/test/
Dssl_helpers.h313 mbedtls_test_mock_socket *peer2,