Lines Matching refs:pctx
76 EVP_PKEY_CTX_free(ctx->pctx); in EVP_MD_CTX_reset()
77 ctx->pctx = NULL; in EVP_MD_CTX_reset()
92 EVP_PKEY_CTX *pctx = NULL; in evp_md_ctx_new_ex() local
95 || (pctx = EVP_PKEY_CTX_new_from_pkey(libctx, pkey, propq)) == NULL) { in evp_md_ctx_new_ex()
100 if (id != NULL && EVP_PKEY_CTX_set1_id(pctx, id->data, id->length) <= 0) in evp_md_ctx_new_ex()
103 EVP_MD_CTX_set_pkey_ctx(ctx, pctx); in evp_md_ctx_new_ex()
107 EVP_PKEY_CTX_free(pctx); in evp_md_ctx_new_ex()
135 if (ctx->pctx != NULL in evp_md_init_internal()
136 && EVP_PKEY_CTX_IS_SIGNATURE_OP(ctx->pctx) in evp_md_init_internal()
137 && ctx->pctx->op.sig.algctx != NULL) { in evp_md_init_internal()
144 if (ctx->pctx->operation == EVP_PKEY_OP_SIGNCTX) in evp_md_init_internal()
146 if (ctx->pctx->operation == EVP_PKEY_OP_VERIFYCTX) in evp_md_init_internal()
326 if (ctx->pctx != NULL in evp_md_init_internal()
327 && (!EVP_PKEY_CTX_IS_SIGNATURE_OP(ctx->pctx) in evp_md_init_internal()
328 || ctx->pctx->op.sig.signature == NULL)) { in evp_md_init_internal()
330 r = EVP_PKEY_CTX_ctrl(ctx->pctx, -1, EVP_PKEY_OP_TYPE_SIG, in evp_md_init_internal()
363 if (ctx->pctx != NULL in EVP_DigestUpdate()
364 && EVP_PKEY_CTX_IS_SIGNATURE_OP(ctx->pctx) in EVP_DigestUpdate()
365 && ctx->pctx->op.sig.algctx != NULL) { in EVP_DigestUpdate()
374 if (ctx->pctx->operation == EVP_PKEY_OP_SIGNCTX) in EVP_DigestUpdate()
376 if (ctx->pctx->operation == EVP_PKEY_OP_VERIFYCTX) in EVP_DigestUpdate()
529 out->pctx = NULL; in EVP_MD_CTX_copy_ex()
546 if (in->pctx != NULL) { in EVP_MD_CTX_copy_ex()
547 out->pctx = EVP_PKEY_CTX_dup(in->pctx); in EVP_MD_CTX_copy_ex()
548 if (out->pctx == NULL) { in EVP_MD_CTX_copy_ex()
584 out->pctx = NULL; in EVP_MD_CTX_copy_ex()
602 if (in->pctx) { in EVP_MD_CTX_copy_ex()
603 out->pctx = EVP_PKEY_CTX_dup(in->pctx); in EVP_MD_CTX_copy_ex()
604 if (!out->pctx) { in EVP_MD_CTX_copy_ex()
669 EVP_PKEY_CTX *pctx = ctx->pctx; in EVP_MD_CTX_set_params() local
672 if (pctx != NULL in EVP_MD_CTX_set_params()
673 && (pctx->operation == EVP_PKEY_OP_VERIFYCTX in EVP_MD_CTX_set_params()
674 || pctx->operation == EVP_PKEY_OP_SIGNCTX) in EVP_MD_CTX_set_params()
675 && pctx->op.sig.algctx != NULL in EVP_MD_CTX_set_params()
676 && pctx->op.sig.signature->set_ctx_md_params != NULL) in EVP_MD_CTX_set_params()
677 return pctx->op.sig.signature->set_ctx_md_params(pctx->op.sig.algctx, in EVP_MD_CTX_set_params()
699 EVP_PKEY_CTX *pctx; in EVP_MD_CTX_settable_params() local
706 pctx = ctx->pctx; in EVP_MD_CTX_settable_params()
707 if (pctx != NULL in EVP_MD_CTX_settable_params()
708 && (pctx->operation == EVP_PKEY_OP_VERIFYCTX in EVP_MD_CTX_settable_params()
709 || pctx->operation == EVP_PKEY_OP_SIGNCTX) in EVP_MD_CTX_settable_params()
710 && pctx->op.sig.algctx != NULL in EVP_MD_CTX_settable_params()
711 && pctx->op.sig.signature->settable_ctx_md_params != NULL) in EVP_MD_CTX_settable_params()
712 return pctx->op.sig.signature->settable_ctx_md_params( in EVP_MD_CTX_settable_params()
713 pctx->op.sig.algctx); in EVP_MD_CTX_settable_params()
725 EVP_PKEY_CTX *pctx = ctx->pctx; in EVP_MD_CTX_get_params() local
728 if (pctx != NULL in EVP_MD_CTX_get_params()
729 && (pctx->operation == EVP_PKEY_OP_VERIFYCTX in EVP_MD_CTX_get_params()
730 || pctx->operation == EVP_PKEY_OP_SIGNCTX) in EVP_MD_CTX_get_params()
731 && pctx->op.sig.algctx != NULL in EVP_MD_CTX_get_params()
732 && pctx->op.sig.signature->get_ctx_md_params != NULL) in EVP_MD_CTX_get_params()
733 return pctx->op.sig.signature->get_ctx_md_params(pctx->op.sig.algctx, in EVP_MD_CTX_get_params()
755 EVP_PKEY_CTX *pctx; in EVP_MD_CTX_gettable_params() local
762 pctx = ctx->pctx; in EVP_MD_CTX_gettable_params()
763 if (pctx != NULL in EVP_MD_CTX_gettable_params()
764 && (pctx->operation == EVP_PKEY_OP_VERIFYCTX in EVP_MD_CTX_gettable_params()
765 || pctx->operation == EVP_PKEY_OP_SIGNCTX) in EVP_MD_CTX_gettable_params()
766 && pctx->op.sig.algctx != NULL in EVP_MD_CTX_gettable_params()
767 && pctx->op.sig.signature->gettable_ctx_md_params != NULL) in EVP_MD_CTX_gettable_params()
768 return pctx->op.sig.signature->gettable_ctx_md_params( in EVP_MD_CTX_gettable_params()
769 pctx->op.sig.algctx); in EVP_MD_CTX_gettable_params()