Lines Matching refs:mdname
76 char mdname[OSSL_MAX_NAME_SIZE]; member
92 static int sm2sig_set_mdname(PROV_SM2_CTX *psm2ctx, const char *mdname) in sm2sig_set_mdname() argument
95 psm2ctx->md = EVP_MD_fetch(psm2ctx->libctx, psm2ctx->mdname, in sm2sig_set_mdname()
106 if (mdname == NULL) in sm2sig_set_mdname()
109 if (strlen(mdname) >= sizeof(psm2ctx->mdname) in sm2sig_set_mdname()
110 || !EVP_MD_is_a(psm2ctx->md, mdname)) { in sm2sig_set_mdname()
112 mdname); in sm2sig_set_mdname()
116 OPENSSL_strlcpy(psm2ctx->mdname, mdname, sizeof(psm2ctx->mdname)); in sm2sig_set_mdname()
133 strcpy(ctx->mdname, OSSL_DIGEST_NAME_SM3); in sm2sig_newctx()
208 static int sm2sig_digest_signverify_init(void *vpsm2ctx, const char *mdname, in sm2sig_digest_signverify_init() argument
218 || !sm2sig_set_mdname(ctx, mdname)) in sm2sig_digest_signverify_init()
420 ? psm2ctx->mdname in sm2sig_get_ctx_params()
483 char *mdname = NULL; in sm2sig_set_ctx_params() local
485 if (!OSSL_PARAM_get_utf8_string(p, &mdname, 0)) in sm2sig_set_ctx_params()
487 if (!sm2sig_set_mdname(psm2ctx, mdname)) { in sm2sig_set_ctx_params()
488 OPENSSL_free(mdname); in sm2sig_set_ctx_params()
491 OPENSSL_free(mdname); in sm2sig_set_ctx_params()