Lines Matching refs:mdnid
127 int mdnid; member
178 int mdnid) in rsa_check_padding() argument
182 if (mdname != NULL || mdnid != NID_undef) { in rsa_check_padding()
188 if (RSA_X931_hash_id(mdnid) == -1) { in rsa_check_padding()
327 ctx->mdnid); in rsa_generate_signature_aid()
337 ctx->mdnid); in rsa_generate_signature_aid()
344 || !ossl_rsa_pss_params_30_set_hashalg(&pss_params, ctx->mdnid) in rsa_generate_signature_aid()
453 ctx->mdnid = md_nid; in rsa_setup_md()
468 int mdnid; in rsa_setup_mgf1_md() local
479 if ((mdnid = ossl_digest_rsa_sign_get_md_nid(md)) <= 0 in rsa_setup_mgf1_md()
480 || !rsa_check_padding(ctx, NULL, mdname, mdnid)) { in rsa_setup_mgf1_md()
481 if (mdnid <= 0) in rsa_setup_mgf1_md()
497 ctx->mgf1_mdnid = mdnid; in rsa_setup_mgf1_md()
737 prsactx->tbuf[tbslen] = RSA_X931_hash_id(prsactx->mdnid); in rsa_sign_directly()
746 ret = RSA_sign(prsactx->mdnid, tbs, tbslen, sig, &sltmp, in rsa_sign_directly()
960 if (prsactx->tbuf[ret] != RSA_X931_hash_id(prsactx->mdnid)) { in rsa_verify_recover()
987 ret = ossl_rsa_verify(prsactx->mdnid, NULL, 0, rout, &sltmp, in rsa_verify_recover()
1039 if (!RSA_verify(prsactx->mdnid, tbs, tbslen, sig, siglen, in rsa_verify_directly()
1779 if (!rsa_check_padding(prsactx, NULL, NULL, prsactx->mdnid)) in rsa_set_ctx_params()