Lines Matching refs:mdname
101 char mdname[OSSL_MAX_NAME_SIZE]; member
167 const char *mdname, const char *mdprops, in ecdsa_setup_md() argument
176 if (mdname == NULL) in ecdsa_setup_md()
179 mdname_len = strlen(mdname); in ecdsa_setup_md()
180 if (mdname_len >= sizeof(ctx->mdname)) { in ecdsa_setup_md()
182 "%s exceeds name buffer length", mdname); in ecdsa_setup_md()
187 md = EVP_MD_fetch(ctx->libctx, mdname, mdprops); in ecdsa_setup_md()
190 "%s could not be fetched", mdname); in ecdsa_setup_md()
196 "%s has invalid md size %d", mdname, md_size); in ecdsa_setup_md()
202 "digest=%s", mdname); in ecdsa_setup_md()
227 if (ctx->mdname[0] != '\0' && !EVP_MD_is_a(md, ctx->mdname)) { in ecdsa_setup_md()
229 "digest %s != %s", mdname, ctx->mdname); in ecdsa_setup_md()
254 OPENSSL_strlcpy(ctx->mdname, mdname, sizeof(ctx->mdname)); in ecdsa_setup_md()
344 const char *mdname = NULL; in ecdsa_sign_directly() local
346 if (ctx->mdname[0] != '\0') in ecdsa_sign_directly()
347 mdname = ctx->mdname; in ecdsa_sign_directly()
350 mdname, in ecdsa_sign_directly()
498 static int ecdsa_digest_signverify_init(void *vctx, const char *mdname, in ecdsa_digest_signverify_init() argument
514 if (mdname != NULL in ecdsa_digest_signverify_init()
516 && (mdname[0] == '\0' || OPENSSL_strcasecmp(ctx->mdname, mdname) != 0) in ecdsa_digest_signverify_init()
517 && !ecdsa_setup_md(ctx, mdname, NULL, desc)) in ecdsa_digest_signverify_init()
537 static int ecdsa_digest_sign_init(void *vctx, const char *mdname, void *ec, in ecdsa_digest_sign_init() argument
540 return ecdsa_digest_signverify_init(vctx, mdname, ec, params, in ecdsa_digest_sign_init()
578 static int ecdsa_digest_verify_init(void *vctx, const char *mdname, void *ec, in ecdsa_digest_verify_init() argument
581 return ecdsa_digest_signverify_init(vctx, mdname, ec, params, in ecdsa_digest_verify_init()
687 ? ctx->mdname in ecdsa_get_ctx_params()
778 char mdname[OSSL_MAX_NAME_SIZE] = "", *pmdname = mdname; in ecdsa_set_ctx_params() local
784 if (!OSSL_PARAM_get_utf8_string(p, &pmdname, sizeof(mdname))) in ecdsa_set_ctx_params()
789 if (!ecdsa_setup_md(ctx, mdname, mdprops, "ECDSA Set Ctx")) in ecdsa_set_ctx_params()
911 const char *mdname, in ecdsa_sigalg_signverify_init() argument
923 if (!ecdsa_setup_md(ctx, mdname, NULL, desc)) in ecdsa_sigalg_signverify_init()