Lines Matching refs:libctx
41 static int get_peer_public_key(PEER_DATA *peer, OSSL_LIB_CTX *libctx) in get_peer_public_key() argument
56 ctx = EVP_PKEY_CTX_new_from_name(libctx, "EC", NULL); in get_peer_public_key()
71 static int create_peer(PEER_DATA *peer, OSSL_LIB_CTX *libctx) in create_peer() argument
81 ctx = EVP_PKEY_CTX_new_from_name(libctx, "EC", NULL); in create_peer()
88 || !get_peer_public_key(peer, libctx)) { in create_peer()
106 OSSL_LIB_CTX *libctx) in generate_secret() argument
113 derivectx = EVP_PKEY_CTX_new_from_pkey(libctx, peerA->priv, NULL); in generate_secret()
186 OSSL_LIB_CTX *libctx = NULL; in main() local
189 if (!create_peer(&peer1, libctx) in main()
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()