Home
last modified time | relevance | path

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

/openssl/demos/keyexch/
H A 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()
H A Decdh.c181 PEER_DATA peer2 = {"peer 2", "P-256"}; in main() local
190 || !create_peer(&peer2, libctx)) { in main()
199 if (!generate_secret(&peer1, peer2.pub, libctx) in main()
200 || !generate_secret(&peer2, peer1.pub, libctx)) { in main()
206 if (peer1.secretlen != peer2.secretlen in main()
207 || CRYPTO_memcmp(peer1.secret, peer2.secret, peer1.secretlen) != 0) { in main()
218 destroy_peer(&peer2); in main()
/openssl/test/
H A Dacvp_test.c357 EVP_PKEY *peer1 = NULL, *peer2 = NULL; in ecdh_cofactor_derive_test() local
369 if (!TEST_ptr(peer2 = EVP_PKEY_Q_keygen(libctx, NULL, "EC", curve))) in ecdh_cofactor_derive_test()
391 || !TEST_int_eq(EVP_PKEY_derive_set_peer(p1ctx, peer2), 1) in ecdh_cofactor_derive_test()
406 EVP_PKEY_free(peer2); in ecdh_cofactor_derive_test()

Completed in 11 milliseconds