Home
last modified time | relevance | path

Searched refs:mdname (Results 1 – 25 of 51) sorted by relevance

123

/openssl/providers/implementations/signature/
H A Decdsa_sig.c102 char mdname[OSSL_MAX_NAME_SIZE]; member
176 if (mdname == NULL) in ecdsa_setup_md()
179 mdname_len = strlen(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()
251 OPENSSL_strlcpy(ctx->mdname, mdname, sizeof(ctx->mdname)); in ecdsa_setup_md()
341 const char *mdname = NULL; in ecdsa_sign_directly() local
344 mdname = ctx->mdname; in ecdsa_sign_directly()
511 if (mdname != NULL in ecdsa_digest_signverify_init()
513 && (mdname[0] == '\0' || OPENSSL_strcasecmp(ctx->mdname, mdname) != 0) in ecdsa_digest_signverify_init()
[all …]
H A Ddsa_sig.c105 char mdname[OSSL_MAX_NAME_SIZE]; member
159 if (mdname != NULL) { in dsa_setup_md()
162 size_t mdname_len = strlen(mdname); in dsa_setup_md()
174 if (mdname_len >= sizeof(ctx->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()
232 OPENSSL_strlcpy(ctx->mdname, mdname, sizeof(ctx->mdname)); in dsa_setup_md()
518 if (mdname != NULL in dsa_digest_signverify_init()
520 && (mdname[0] == '\0' || OPENSSL_strcasecmp(pdsactx->mdname, mdname) != 0) in dsa_digest_signverify_init()
[all …]
H A Dsm2_sig.c76 char mdname[OSSL_MAX_NAME_SIZE]; member
107 if (mdname == NULL) in sm2sig_set_mdname()
110 if (strlen(mdname) >= sizeof(psm2ctx->mdname) in sm2sig_set_mdname()
111 || !EVP_MD_is_a(psm2ctx->md, mdname)) { in sm2sig_set_mdname()
113 mdname); in sm2sig_set_mdname()
117 OPENSSL_strlcpy(psm2ctx->mdname, mdname, sizeof(psm2ctx->mdname)); in sm2sig_set_mdname()
134 strcpy(ctx->mdname, OSSL_DIGEST_NAME_SM3); in sm2sig_newctx()
218 || !sm2sig_set_mdname(ctx, mdname)) in sm2sig_digest_signverify_init()
479 char *mdname = NULL; in sm2sig_set_ctx_params() local
484 OPENSSL_free(mdname); in sm2sig_set_ctx_params()
[all …]
H A Drsa_sig.c195 if ((mdname != NULL && !EVP_MD_is_a(prsactx->md, mdname)) in rsa_check_padding()
378 if (mdname != NULL) { in rsa_setup_md()
380 size_t mdname_len = strlen(mdname); in rsa_setup_md()
429 if (ctx->mdname[0] != '\0' && !EVP_MD_is_a(md, ctx->mdname)) { in rsa_setup_md()
431 "digest %s != %s", mdname, ctx->mdname); in rsa_setup_md()
454 OPENSSL_strlcpy(ctx->mdname, mdname, sizeof(ctx->mdname)); in rsa_setup_md()
557 if (mdname == NULL) { in rsa_signverify_init()
568 len = OPENSSL_strlcpy(prsactx->mdname, mdname, in rsa_signverify_init()
1202 if (mdname != NULL in rsa_digest_signverify_init()
1204 && (mdname[0] == '\0' || OPENSSL_strcasecmp(prsactx->mdname, mdname) != 0) in rsa_digest_signverify_init()
[all …]
H A Deddsa_sig.c669 static int ed25519_digest_signverify_init(void *vpeddsactx, const char *mdname, in ed25519_digest_signverify_init() argument
675 if (mdname != NULL && mdname[0] != '\0') { in ed25519_digest_signverify_init()
703 static int ed448_digest_signverify_init(void *vpeddsactx, const char *mdname, in ed448_digest_signverify_init() argument
709 if (mdname != NULL && mdname[0] != '\0') { in ed448_digest_signverify_init()
H A Dmac_legacy_sig.c96 static int mac_digest_sign_init(void *vpmacctx, const char *mdname, void *vkey, in mac_digest_sign_init() argument
127 (char *)mdname, in mac_digest_sign_init()
/openssl/crypto/evp/
H A Dm_sigver.c31 static const char *canon_mdname(const char *mdname) in canon_mdname() argument
33 if (mdname != NULL && strcmp(mdname, "UNDEF") == 0) in canon_mdname()
36 return mdname; in canon_mdname()
98 if (mdname == NULL && type == NULL) in do_sigver_init()
215 if (mdname == NULL) in do_sigver_init()
216 mdname = canon_mdname(EVP_MD_get0_name(type)); in do_sigver_init()
218 if (mdname == NULL && !reinit) { in do_sigver_init()
222 mdname = canon_mdname(locmdname); in do_sigver_init()
226 if (mdname != NULL) { in do_sigver_init()
284 if (ret > 0 || mdname != NULL) in do_sigver_init()
[all …]
H A Dp5_crpt.c42 const char *mdname = EVP_MD_name(md); in PKCS5_PBE_keyivgen_ex() local
95 (char *)mdname, 0); in PKCS5_PBE_keyivgen_ex()
/openssl/providers/common/
H A Dprovider_util.c167 const char *mdname, const char *propquery) in ossl_prov_digest_fetch() argument
170 pd->md = pd->alloc_md = EVP_MD_fetch(libctx, mdname, propquery); in ossl_prov_digest_fetch()
226 const char *mdname, in ossl_prov_set_macctx() argument
236 if (mdname == NULL) { in ossl_prov_set_macctx()
241 mdname = p->data; in ossl_prov_set_macctx()
262 if (mdname != NULL) in ossl_prov_set_macctx()
264 (char *)mdname, 0); in ossl_prov_set_macctx()
293 const char *mdname, in ossl_prov_macctx_load_from_params() argument
331 if (ossl_prov_set_macctx(*macctx, params, ciphername, mdname, NULL, in ossl_prov_macctx_load_from_params()
/openssl/providers/common/include/prov/
H A Dprovider_util.h67 const char *mdname, const char *propquery);
98 const char *mdname,
125 const char *mdname,
/openssl/include/internal/
H A Dhpke_util.h35 const char *mdname; /* hash alg name for the HKDF */ member
48 const char *mdname; /* hash alg name for the HKDF */ member
96 EVP_KDF_CTX *ossl_kdf_ctx_create(const char *kdfname, const char *mdname,
/openssl/crypto/crmf/
H A Dcrmf_pbm.c134 char mdname[OSSL_MAX_NAME_SIZE]; in OSSL_CRMF_pbm_new() local
157 OBJ_obj2txt(mdname, sizeof(mdname), pbmp->owf->algorithm, 0); in OSSL_CRMF_pbm_new()
158 if ((owf = EVP_MD_fetch(libctx, mdname, propq)) == NULL) { in OSSL_CRMF_pbm_new()
/openssl/crypto/rsa/
H A Drsa_lib.c965 const char *mdkey, const char *mdname, in int_set_rsa_md_name() argument
970 if (ctx == NULL || mdname == NULL || (ctx->operation & optype) == 0) { in int_set_rsa_md_name()
990 *p++ = OSSL_PARAM_construct_utf8_string(mdkey, (char *)mdname, 0); in int_set_rsa_md_name()
1006 char *mdname, size_t mdnamesize) in int_get_rsa_md_name() argument
1010 if (ctx == NULL || mdname == NULL || (ctx->operation & optype) == 0) { in int_get_rsa_md_name()
1067 const char *mdname, in EVP_PKEY_CTX_set_rsa_pss_keygen_md_name() argument
1071 OSSL_PKEY_PARAM_RSA_DIGEST, mdname, in EVP_PKEY_CTX_set_rsa_pss_keygen_md_name()
1094 OSSL_ASYM_CIPHER_PARAM_OAEP_DIGEST, mdname, in EVP_PKEY_CTX_set_rsa_oaep_md_name()
1135 OSSL_PKEY_PARAM_MGF1_DIGEST, mdname, in EVP_PKEY_CTX_set_rsa_mgf1_md_name()
1158 const char *mdname) in EVP_PKEY_CTX_set_rsa_pss_keygen_mgf1_md_name() argument
[all …]
H A Drsa_backend.c319 const char *mdname = in ossl_rsa_pss_params_30_todata() local
338 if ((mdname != NULL in ossl_rsa_pss_params_30_todata()
339 && !ossl_param_build_set_utf8_string(bld, params, key_md, mdname)) in ossl_rsa_pss_params_30_todata()
414 const char *mdname = NULL; in ossl_rsa_pss_params_30_fromdata() local
417 mdname = param_md->data; in ossl_rsa_pss_params_30_fromdata()
418 else if (!OSSL_PARAM_get_utf8_ptr(param_mgf, &mdname)) in ossl_rsa_pss_params_30_fromdata()
421 if ((md = EVP_MD_fetch(libctx, mdname, propq)) == NULL in ossl_rsa_pss_params_30_fromdata()
/openssl/crypto/ec/
H A Decdh_kdf.c33 const char *mdname = EVP_MD_get0_name(md); in ossl_ecdh_kdf_X9_63() local
38 (char *)mdname, 0); in ossl_ecdh_kdf_X9_63()
/openssl/crypto/dh/
H A Ddh_kdf.c38 const char *mdname = EVP_MD_get0_name(md); in ossl_dh_kdf_X9_42_asn1() local
48 (char *)mdname, 0); in ossl_dh_kdf_X9_42_asn1()
/openssl/providers/implementations/asymciphers/
H A Drsa_enc.c463 char mdname[OSSL_MAX_NAME_SIZE]; in rsa_set_ctx_params() local
481 str = mdname; in rsa_set_ctx_params()
482 if (!OSSL_PARAM_get_utf8_string(p, &str, sizeof(mdname))) in rsa_set_ctx_params()
494 prsactx->oaep_md = EVP_MD_fetch(prsactx->libctx, mdname, mdprops); in rsa_set_ctx_params()
544 str = mdname; in rsa_set_ctx_params()
545 if (!OSSL_PARAM_get_utf8_string(p, &str, sizeof(mdname))) in rsa_set_ctx_params()
559 prsactx->mgf1_md = EVP_MD_fetch(prsactx->libctx, mdname, str); in rsa_set_ctx_params()
/openssl/crypto/ffc/
H A Dffc_params.c135 params->mdname = alg; in ossl_ffc_set_digest()
189 dst->mdname = src->mdname; in ossl_ffc_params_copy()
271 if (ffc->mdname != NULL in ossl_ffc_params_todata()
274 ffc->mdname)) in ossl_ffc_params_todata()
/openssl/providers/implementations/keymgmt/
H A Ddsa_kmgmt.c69 char *mdname; member
523 OPENSSL_free(gctx->mdname); in dsa_gen_set_params()
524 gctx->mdname = OPENSSL_strdup(p->data); in dsa_gen_set_params()
525 if (gctx->mdname == NULL) in dsa_gen_set_params()
659 if (gctx->mdname != NULL) in dsa_gen()
660 ossl_ffc_set_digest(ffc, gctx->mdname, gctx->mdprops); in dsa_gen()
696 OPENSSL_free(gctx->mdname); in dsa_gen_cleanup()
H A Ddh_kmgmt.c73 char *mdname; member
465 gctx->mdname = NULL; in dh_gen_init_base()
634 OPENSSL_free(gctx->mdname); in dhx_gen_set_params()
635 gctx->mdname = OPENSSL_strdup(p->data); in dhx_gen_set_params()
636 if (gctx->mdname == NULL) in dhx_gen_set_params()
760 if (gctx->mdname != NULL) in dh_gen()
761 ossl_ffc_set_digest(ffc, gctx->mdname, gctx->mdprops); in dh_gen()
816 OPENSSL_free(gctx->mdname); in dh_gen_cleanup()
/openssl/crypto/hpke/
H A Dhpke_util.c393 EVP_KDF_CTX *ossl_kdf_ctx_create(const char *kdfname, const char *mdname, in ossl_kdf_ctx_create() argument
406 if (kctx != NULL && mdname != NULL) { in ossl_kdf_ctx_create()
409 if (mdname != NULL) in ossl_kdf_ctx_create()
411 (char *)mdname, 0); in ossl_kdf_ctx_create()
/openssl/doc/man3/
H A DEVP_PKEY_get_default_digest_nid.pod13 char *mdname, size_t mdname_sz);
20 I<pkey> into I<mdname>, up to at most I<mdname_sz> bytes including the
/openssl/test/
H A Dtls-provider.c2638 char mdname[OSSL_MAX_NAME_SIZE]; member
2669 const char *mdname, const char *mdprops) in xor_sig_setup_md() argument
2676 md = EVP_MD_fetch(ctx->libctx, mdname, mdprops); in xor_sig_setup_md()
2681 "%s could not be fetched", mdname); in xor_sig_setup_md()
2701 OPENSSL_strlcpy(ctx->mdname, mdname, sizeof(ctx->mdname)); in xor_sig_setup_md()
2822 char *rmdname = (char *)mdname; in xor_sig_digest_signverify_init()
2854 return xor_sig_digest_signverify_init(vpxor_sigctx, mdname, vxorsig, in xor_sig_digest_sign_init()
2860 return xor_sig_digest_signverify_init(vpxor_sigctx, mdname, in xor_sig_digest_verify_init()
3016 char mdname[OSSL_MAX_NAME_SIZE] = "", *pmdname = mdname; in xor_sig_set_ctx_params() local
3022 if (!OSSL_PARAM_get_utf8_string(p, &pmdname, sizeof(mdname))) in xor_sig_set_ctx_params()
[all …]
/openssl/ssl/
H A Dtls13_enc.c43 const char *mdname = EVP_MD_get0_name(md); in tls13_hkdf_expand_ex() local
74 (char *)mdname, 0); in tls13_hkdf_expand_ex()
176 const char *mdname = EVP_MD_get0_name(md); in tls13_generate_secret() local
200 (char *)mdname, 0); in tls13_generate_secret()
270 const char *mdname = EVP_MD_get0_name(md); in tls13_final_finish_mac() local
305 if (!EVP_Q_mac(sctx->libctx, "HMAC", sctx->propq, mdname, in tls13_final_finish_mac()
/openssl/include/openssl/
H A Drsa.h150 int EVP_PKEY_CTX_set_rsa_mgf1_md_name(EVP_PKEY_CTX *ctx, const char *mdname,
157 const char *mdname);
161 const char *mdname,
165 int EVP_PKEY_CTX_set_rsa_oaep_md_name(EVP_PKEY_CTX *ctx, const char *mdname,

Completed in 88 milliseconds

123