Lines Matching defs:mctx
292 EVP_MD_CTX_init(&si->mctx);
392 } else if (EVP_DigestSignInit(&si->mctx, &si->pctx, md, NULL, pk) <=
450 return &si->mctx;
579 EVP_MD_CTX mctx;
582 EVP_MD_CTX_init(&mctx);
589 if (!cms_DigestAlgorithm_find_ctx(&mctx, chain, si->digestAlgorithm))
604 if (!EVP_DigestFinal_ex(&mctx, md, &mdlen))
621 if (!EVP_DigestFinal_ex(&mctx, md, &mdlen))
640 if (!EVP_SignFinal(&mctx, sig, &siglen, si->pkey)) {
651 EVP_MD_CTX_cleanup(&mctx);
675 EVP_MD_CTX *mctx = &si->mctx;
694 EVP_MD_CTX_init(mctx);
695 if (EVP_DigestSignInit(mctx, &pctx, md, NULL, si->pkey) <= 0)
709 if (EVP_DigestSignUpdate(mctx, abuf, alen) <= 0)
711 if (EVP_DigestSignFinal(mctx, NULL, &siglen) <= 0)
717 if (EVP_DigestSignFinal(mctx, abuf, &siglen) <= 0)
726 EVP_MD_CTX_cleanup(mctx);
735 EVP_MD_CTX_cleanup(mctx);
742 EVP_MD_CTX *mctx = &si->mctx;
755 EVP_MD_CTX_init(mctx);
756 if (EVP_DigestVerifyInit(mctx, &si->pctx, md, NULL, si->pkey) <= 0)
766 r = EVP_DigestVerifyUpdate(mctx, abuf, alen);
772 r = EVP_DigestVerifyFinal(mctx,
777 EVP_MD_CTX_cleanup(mctx);
815 EVP_MD_CTX mctx;
820 EVP_MD_CTX_init(&mctx);
833 if (!cms_DigestAlgorithm_find_ctx(&mctx, chain, si->digestAlgorithm))
836 if (EVP_DigestFinal_ex(&mctx, mval, &mlen) <= 0) {
858 const EVP_MD *md = EVP_MD_CTX_md(&mctx);
881 EVP_MD_CTX_cleanup(&mctx);