Lines Matching defs:pkey_ctx
3103 EVP_PKEY_CTX *pkey_ctx;
3130 pkey_ctx = EVP_PKEY_CTX_new_from_pkey(s->ctx->libctx, pk, s->ctx->propq);
3131 if (pkey_ctx == NULL) {
3135 if (EVP_PKEY_decrypt_init(pkey_ctx) <= 0) {
3147 if (EVP_PKEY_derive_set_peer(pkey_ctx, client_pub_pkey) <= 0)
3175 if (EVP_PKEY_decrypt(pkey_ctx, premaster_secret, &outlen, start,
3187 if (EVP_PKEY_CTX_ctrl(pkey_ctx, -1, -1, EVP_PKEY_CTRL_PEER_KEY, 2,
3193 EVP_PKEY_CTX_free(pkey_ctx);
3207 EVP_PKEY_CTX *pkey_ctx = NULL;
3234 pkey_ctx = EVP_PKEY_CTX_new_from_pkey(s->ctx->libctx, pk, s->ctx->propq);
3235 if (pkey_ctx == NULL) {
3239 if (EVP_PKEY_decrypt_init(pkey_ctx) <= 0) {
3245 if (EVP_PKEY_CTX_ctrl(pkey_ctx, -1, EVP_PKEY_OP_DECRYPT,
3251 if (EVP_PKEY_CTX_ctrl(pkey_ctx, -1, EVP_PKEY_OP_DECRYPT,
3259 if (EVP_PKEY_decrypt(pkey_ctx, premaster_secret, &outlen, start, inlen) <= 0) {
3272 EVP_PKEY_CTX_free(pkey_ctx);