Lines Matching defs:mctx
708 static int do_pkcs7_signed_attrib(PKCS7_SIGNER_INFO *si, EVP_MD_CTX *mctx)
725 if (!EVP_DigestFinal_ex(mctx, md_data,&md_len))
907 EVP_MD_CTX mctx;
918 EVP_MD_CTX_init(&mctx);
919 if (EVP_DigestSignInit(&mctx, &pctx, md,NULL, si->pkey) <= 0)
933 if (EVP_DigestSignUpdate(&mctx,abuf,alen) <= 0)
937 if (EVP_DigestSignFinal(&mctx, NULL, &siglen) <= 0)
942 if (EVP_DigestSignFinal(&mctx, abuf, &siglen) <= 0)
952 EVP_MD_CTX_cleanup(&mctx);
961 EVP_MD_CTX_cleanup(&mctx);