Lines Matching refs:mdctx
126 EVP_MD_CTX *mdctx; member
448 EVP_MD_CTX_free(ctx->mdctx); in rsa_setup_md()
451 ctx->mdctx = NULL; in rsa_setup_md()
836 if (prsactx == NULL || prsactx->mdctx == NULL) in rsa_signverify_message_update()
845 return EVP_DigestUpdate(prsactx->mdctx, data, datalen); in rsa_signverify_message_update()
857 if (prsactx->mdctx == NULL) in rsa_sign_message_final()
873 if (!EVP_DigestFinal_ex(prsactx->mdctx, digest, &dlen)) in rsa_sign_message_final()
1139 if (prsactx->mdctx == NULL) in rsa_verify_message_final()
1150 if (!EVP_DigestFinal_ex(prsactx->mdctx, digest, &dlen)) in rsa_verify_message_final()
1210 if (prsactx->mdctx == NULL) { in rsa_digest_signverify_init()
1211 prsactx->mdctx = EVP_MD_CTX_new(); in rsa_digest_signverify_init()
1212 if (prsactx->mdctx == NULL) in rsa_digest_signverify_init()
1216 if (!EVP_DigestInit_ex2(prsactx->mdctx, prsactx->md, params)) in rsa_digest_signverify_init()
1222 EVP_MD_CTX_free(prsactx->mdctx); in rsa_digest_signverify_init()
1223 prsactx->mdctx = NULL; in rsa_digest_signverify_init()
1323 EVP_MD_CTX_free(prsactx->mdctx); in rsa_freectx()
1350 dstctx->mdctx = NULL; in rsa_dupctx()
1366 if (srcctx->mdctx != NULL) { in rsa_dupctx()
1367 dstctx->mdctx = EVP_MD_CTX_new(); in rsa_dupctx()
1368 if (dstctx->mdctx == NULL in rsa_dupctx()
1369 || !EVP_MD_CTX_copy_ex(dstctx->mdctx, srcctx->mdctx)) in rsa_dupctx()
1825 if (prsactx->mdctx == NULL) in rsa_get_ctx_md_params()
1828 return EVP_MD_CTX_get_params(prsactx->mdctx, params); in rsa_get_ctx_md_params()
1845 if (prsactx->mdctx == NULL) in rsa_set_ctx_md_params()
1848 return EVP_MD_CTX_set_params(prsactx->mdctx, params); in rsa_set_ctx_md_params()
1947 if (prsactx->mdctx == NULL) { in rsa_sigalg_signverify_init()
1948 prsactx->mdctx = EVP_MD_CTX_new(); in rsa_sigalg_signverify_init()
1949 if (prsactx->mdctx == NULL) in rsa_sigalg_signverify_init()
1953 if (!EVP_DigestInit_ex2(prsactx->mdctx, prsactx->md, params)) in rsa_sigalg_signverify_init()
1959 EVP_MD_CTX_free(prsactx->mdctx); in rsa_sigalg_signverify_init()
1960 prsactx->mdctx = NULL; in rsa_sigalg_signverify_init()