Lines Matching refs:pkey_ctx
3205 EVP_PKEY_CTX *pkey_ctx; in tls_process_cke_gost() local
3233 pkey_ctx = EVP_PKEY_CTX_new_from_pkey(sctx->libctx, pk, sctx->propq); in tls_process_cke_gost()
3234 if (pkey_ctx == NULL) { in tls_process_cke_gost()
3238 if (EVP_PKEY_decrypt_init(pkey_ctx) <= 0) { in tls_process_cke_gost()
3250 if (EVP_PKEY_derive_set_peer(pkey_ctx, client_pub_pkey) <= 0) in tls_process_cke_gost()
3278 if (EVP_PKEY_decrypt(pkey_ctx, premaster_secret, &outlen, start, in tls_process_cke_gost()
3289 if (EVP_PKEY_CTX_ctrl(pkey_ctx, -1, -1, EVP_PKEY_CTRL_PEER_KEY, 2, in tls_process_cke_gost()
3295 EVP_PKEY_CTX_free(pkey_ctx); in tls_process_cke_gost()
3309 EVP_PKEY_CTX *pkey_ctx = NULL; in tls_process_cke_gost18() local
3337 pkey_ctx = EVP_PKEY_CTX_new_from_pkey(sctx->libctx, pk, sctx->propq); in tls_process_cke_gost18()
3338 if (pkey_ctx == NULL) { in tls_process_cke_gost18()
3342 if (EVP_PKEY_decrypt_init(pkey_ctx) <= 0) { in tls_process_cke_gost18()
3348 if (EVP_PKEY_CTX_ctrl(pkey_ctx, -1, EVP_PKEY_OP_DECRYPT, in tls_process_cke_gost18()
3354 if (EVP_PKEY_CTX_ctrl(pkey_ctx, -1, EVP_PKEY_OP_DECRYPT, in tls_process_cke_gost18()
3362 if (EVP_PKEY_decrypt(pkey_ctx, premaster_secret, &outlen, start, inlen) <= 0) { in tls_process_cke_gost18()
3374 EVP_PKEY_CTX_free(pkey_ctx); in tls_process_cke_gost18()