Lines Matching refs:mctx
30 EVP_MD_CTX *mctx, const char *digestname,
41 static int do_raw_keyop(int pkey_op, EVP_MD_CTX *mctx,
151 EVP_MD_CTX *mctx = NULL; in pkeyutl_main() local
345 if ((mctx = EVP_MD_CTX_new()) == NULL) { in pkeyutl_main()
351 mctx, digestname, kemop, libctx, app_get0_propq()); in pkeyutl_main()
511 rv = do_raw_keyop(pkey_op, mctx, pkey, in, filesize, sig, siglen, in pkeyutl_main()
527 rv = do_raw_keyop(pkey_op, mctx, pkey, in, filesize, NULL, 0, in pkeyutl_main()
570 EVP_MD_CTX_free(mctx); in pkeyutl_main()
635 EVP_MD_CTX *mctx, const char *digestname, in init_ctx() argument
677 EVP_MD_CTX_set_pkey_ctx(mctx, ctx); in init_ctx()
681 rv = EVP_DigestSignInit_ex(mctx, NULL, digestname, libctx, propq, in init_ctx()
686 rv = EVP_DigestVerifyInit_ex(mctx, NULL, digestname, libctx, propq, in init_ctx()
802 static int do_raw_keyop(int pkey_op, EVP_MD_CTX *mctx, in do_raw_keyop() argument
827 rv = EVP_DigestVerify(mctx, sig, (size_t)siglen, mbuf, buf_len); in do_raw_keyop()
835 rv = EVP_DigestSign(mctx, NULL, poutlen, mbuf, buf_len); in do_raw_keyop()
838 rv = EVP_DigestSign(mctx, *out, poutlen, mbuf, buf_len); in do_raw_keyop()
855 rv = EVP_DigestVerifyUpdate(mctx, tbuf, (size_t)buf_len); in do_raw_keyop()
861 rv = EVP_DigestVerifyFinal(mctx, sig, (size_t)siglen); in do_raw_keyop()
872 rv = EVP_DigestSignUpdate(mctx, tbuf, (size_t)buf_len); in do_raw_keyop()
878 rv = EVP_DigestSignFinal(mctx, NULL, poutlen); in do_raw_keyop()
881 rv = EVP_DigestSignFinal(mctx, *out, poutlen); in do_raw_keyop()