Lines Matching refs:pctx

366     si->pctx = NULL;  in CMS_add1_signer()
501 si->pctx = EVP_PKEY_CTX_new_from_pkey(ossl_cms_ctx_get0_libctx(ctx), in CMS_add1_signer()
504 if (si->pctx == NULL) in CMS_add1_signer()
506 if (EVP_PKEY_sign_init(si->pctx) <= 0) in CMS_add1_signer()
508 if (EVP_PKEY_CTX_set_signature_md(si->pctx, md) <= 0) in CMS_add1_signer()
510 } else if (EVP_DigestSignInit_ex(si->mctx, &si->pctx, in CMS_add1_signer()
515 si->pctx = NULL; in CMS_add1_signer()
588 return si->pctx; in CMS_SignerInfo_get0_pkey_ctx()
720 EVP_PKEY_CTX *pctx = NULL; in cms_SignerInfo_content_sign() local
736 if (si->pctx && !cms_sd_asn1_ctrl(si, 0)) in cms_SignerInfo_content_sign()
759 } else if (si->pctx) { in cms_SignerInfo_content_sign()
764 pctx = si->pctx; in cms_SignerInfo_content_sign()
765 si->pctx = NULL; in cms_SignerInfo_content_sign()
774 if (EVP_PKEY_sign(pctx, sig, &siglen, md, mdlen) <= 0) { in cms_SignerInfo_content_sign()
804 EVP_PKEY_CTX_free(pctx); in cms_SignerInfo_content_sign()
831 EVP_PKEY_CTX *pctx = NULL; in CMS_SignerInfo_sign() local
850 if (si->pctx) { in CMS_SignerInfo_sign()
851 pctx = si->pctx; in CMS_SignerInfo_sign()
854 if (EVP_DigestSignInit_ex(mctx, &pctx, md_name, in CMS_SignerInfo_sign()
860 si->pctx = pctx; in CMS_SignerInfo_sign()
931 if (si->pctx != NULL) { in CMS_SignerInfo_verify()
932 EVP_PKEY_CTX_free(si->pctx); in CMS_SignerInfo_verify()
933 si->pctx = NULL; in CMS_SignerInfo_verify()
935 if (EVP_DigestVerifyInit_ex(mctx, &si->pctx, EVP_MD_get0_name(md), libctx, in CMS_SignerInfo_verify()
937 si->pctx = NULL; in CMS_SignerInfo_verify()
1055 si->pctx = pkctx; in CMS_SignerInfo_verify_content()
1057 si->pctx = NULL; in CMS_SignerInfo_verify_content()
1060 si->pctx = NULL; in CMS_SignerInfo_verify_content()