Searched refs:kctx (Results 1 – 2 of 2) sorted by relevance
1953 EVP_PKEY_CTX *kctx = NULL; in crypto_ecdh_init() local1977 kctx = EVP_PKEY_CTX_new(params, NULL); in crypto_ecdh_init()1978 if (!kctx) in crypto_ecdh_init()1981 if (EVP_PKEY_keygen_init(kctx) != 1) { in crypto_ecdh_init()1988 if (EVP_PKEY_keygen(kctx, &ecdh->pkey) != 1) { in crypto_ecdh_init()1997 EVP_PKEY_CTX_free(kctx); in crypto_ecdh_init()
511 EVP_PKEY_CTX *kctx = NULL; in dpp_gen_keypair() local538 kctx = EVP_PKEY_CTX_new(params, NULL); in dpp_gen_keypair()539 if (!kctx || in dpp_gen_keypair()540 EVP_PKEY_keygen_init(kctx) != 1 || in dpp_gen_keypair()541 EVP_PKEY_keygen(kctx, &key) != 1) { in dpp_gen_keypair()553 EVP_PKEY_CTX_free(kctx); in dpp_gen_keypair()