Lines Matching defs:mctx
714 static int do_pkcs7_signed_attrib(PKCS7_SIGNER_INFO *si, EVP_MD_CTX *mctx)
728 if (!EVP_DigestFinal_ex(mctx, md_data, &md_len)) {
913 EVP_MD_CTX mctx;
924 EVP_MD_CTX_init(&mctx);
925 if (EVP_DigestSignInit(&mctx, &pctx, md, NULL, si->pkey) <= 0)
938 if (EVP_DigestSignUpdate(&mctx, abuf, alen) <= 0)
942 if (EVP_DigestSignFinal(&mctx, NULL, &siglen) <= 0)
947 if (EVP_DigestSignFinal(&mctx, abuf, &siglen) <= 0)
956 EVP_MD_CTX_cleanup(&mctx);
965 EVP_MD_CTX_cleanup(&mctx);