Lines Matching refs:mdname
104 char mdname[OSSL_MAX_NAME_SIZE]; member
150 const char *mdname, const char *mdprops, in dsa_setup_md() argument
158 if (mdname != NULL) { in dsa_setup_md()
161 size_t mdname_len = strlen(mdname); in dsa_setup_md()
164 md = EVP_MD_fetch(ctx->libctx, mdname, mdprops); in dsa_setup_md()
170 "%s could not be fetched", mdname); in dsa_setup_md()
173 "digest=%s", mdname); in dsa_setup_md()
174 if (mdname_len >= sizeof(ctx->mdname)) in dsa_setup_md()
176 "%s exceeds name buffer length", mdname); in dsa_setup_md()
200 if (ctx->mdname[0] != '\0' in dsa_setup_md()
201 && !EVP_MD_is_a(md, ctx->mdname)) { in dsa_setup_md()
203 "digest %s != %s", mdname, ctx->mdname); in dsa_setup_md()
234 OPENSSL_strlcpy(ctx->mdname, mdname, sizeof(ctx->mdname)); in dsa_setup_md()
357 pdsactx->nonce_type, pdsactx->mdname, in dsa_sign_directly()
507 static int dsa_digest_signverify_init(void *vpdsactx, const char *mdname, in dsa_digest_signverify_init() argument
520 if (mdname != NULL in dsa_digest_signverify_init()
522 && (mdname[0] == '\0' || OPENSSL_strcasecmp(pdsactx->mdname, mdname) != 0) in dsa_digest_signverify_init()
523 && !dsa_setup_md(pdsactx, mdname, NULL, desc)) in dsa_digest_signverify_init()
545 static int dsa_digest_sign_init(void *vpdsactx, const char *mdname, in dsa_digest_sign_init() argument
548 return dsa_digest_signverify_init(vpdsactx, mdname, vdsa, params, in dsa_digest_sign_init()
586 static int dsa_digest_verify_init(void *vpdsactx, const char *mdname, in dsa_digest_verify_init() argument
589 return dsa_digest_signverify_init(vpdsactx, mdname, vdsa, params, in dsa_digest_verify_init()
685 if (p != NULL && !OSSL_PARAM_set_utf8_string(p, pdsactx->mdname)) in dsa_get_ctx_params()
761 char mdname[OSSL_MAX_NAME_SIZE] = "", *pmdname = mdname; in dsa_set_ctx_params() local
767 if (!OSSL_PARAM_get_utf8_string(p, &pmdname, sizeof(mdname))) in dsa_set_ctx_params()
772 if (!dsa_setup_md(pdsactx, mdname, mdprops, "DSA Set Ctx")) in dsa_set_ctx_params()
893 const char *mdname, in dsa_sigalg_signverify_init() argument
905 if (!dsa_setup_md(pdsactx, mdname, NULL, desc)) in dsa_sigalg_signverify_init()