Lines Matching refs:mctx
738 static int do_pkcs7_signed_attrib(PKCS7_SIGNER_INFO *si, EVP_MD_CTX *mctx) in do_pkcs7_signed_attrib() argument
752 if (!EVP_DigestFinal_ex(mctx, md_data, &md_len)) { in do_pkcs7_signed_attrib()
948 EVP_MD_CTX *mctx; in PKCS7_SIGNER_INFO_sign() local
960 mctx = EVP_MD_CTX_new(); in PKCS7_SIGNER_INFO_sign()
961 if (mctx == NULL) { in PKCS7_SIGNER_INFO_sign()
966 if (EVP_DigestSignInit_ex(mctx, &pctx, EVP_MD_get0_name(md), in PKCS7_SIGNER_INFO_sign()
976 if (EVP_DigestSignUpdate(mctx, abuf, alen) <= 0) in PKCS7_SIGNER_INFO_sign()
980 if (EVP_DigestSignFinal(mctx, NULL, &siglen) <= 0) in PKCS7_SIGNER_INFO_sign()
985 if (EVP_DigestSignFinal(mctx, abuf, &siglen) <= 0) in PKCS7_SIGNER_INFO_sign()
988 EVP_MD_CTX_free(mctx); in PKCS7_SIGNER_INFO_sign()
996 EVP_MD_CTX_free(mctx); in PKCS7_SIGNER_INFO_sign()