/third_party/node/deps/openssl/openssl/providers/implementations/signature/ |
D | dsa_sig.c | 78 char mdname[OSSL_MAX_NAME_SIZE]; member 121 const char *mdname, const char *mdprops) in dsa_setup_md() argument 126 if (mdname != NULL) { in dsa_setup_md() 129 EVP_MD *md = EVP_MD_fetch(ctx->libctx, mdname, mdprops); in dsa_setup_md() 132 size_t mdname_len = strlen(mdname); in dsa_setup_md() 137 "%s could not be fetched", mdname); in dsa_setup_md() 140 "digest=%s", mdname); in dsa_setup_md() 141 if (mdname_len >= sizeof(ctx->mdname)) in dsa_setup_md() 143 "%s exceeds name buffer length", mdname); in dsa_setup_md() 149 if (ctx->mdname[0] != '\0' && !EVP_MD_is_a(md, ctx->mdname)) { in dsa_setup_md() [all …]
|
D | ecdsa_sig.c | 67 char mdname[OSSL_MAX_NAME_SIZE]; member 215 static int ecdsa_setup_md(PROV_ECDSA_CTX *ctx, const char *mdname, in ecdsa_setup_md() argument 223 if (mdname == NULL) in ecdsa_setup_md() 226 mdname_len = strlen(mdname); in ecdsa_setup_md() 227 if (mdname_len >= sizeof(ctx->mdname)) { in ecdsa_setup_md() 229 "%s exceeds name buffer length", mdname); in ecdsa_setup_md() 234 md = EVP_MD_fetch(ctx->libctx, mdname, mdprops); in ecdsa_setup_md() 237 "%s could not be fetched", mdname); in ecdsa_setup_md() 245 "digest=%s", mdname); in ecdsa_setup_md() 251 if (ctx->mdname[0] != '\0' && !EVP_MD_is_a(md, ctx->mdname)) { in ecdsa_setup_md() [all …]
|
D | rsa_sig.c | 94 char mdname[OSSL_MAX_NAME_SIZE]; /* Purely informational */ member 123 const char *mdname, const char *mgf1_mdname, in rsa_check_padding() argument 128 if (mdname != NULL || mdnid != NID_undef) { in rsa_check_padding() 141 if ((mdname != NULL && !EVP_MD_is_a(prsactx->md, mdname)) in rsa_check_padding() 283 static int rsa_setup_md(PROV_RSA_CTX *ctx, const char *mdname, in rsa_setup_md() argument 289 if (mdname != NULL) { in rsa_setup_md() 290 EVP_MD *md = EVP_MD_fetch(ctx->libctx, mdname, mdprops); in rsa_setup_md() 294 size_t mdname_len = strlen(mdname); in rsa_setup_md() 298 || !rsa_check_padding(ctx, mdname, NULL, md_nid) in rsa_setup_md() 299 || mdname_len >= sizeof(ctx->mdname)) { in rsa_setup_md() [all …]
|
D | sm2_sig.c | 76 char mdname[OSSL_MAX_NAME_SIZE]; member 93 static int sm2sig_set_mdname(PROV_SM2_CTX *psm2ctx, const char *mdname) in sm2sig_set_mdname() argument 96 psm2ctx->md = EVP_MD_fetch(psm2ctx->libctx, psm2ctx->mdname, in sm2sig_set_mdname() 101 if (mdname == NULL) in sm2sig_set_mdname() 104 if (strlen(mdname) >= sizeof(psm2ctx->mdname) in sm2sig_set_mdname() 105 || !EVP_MD_is_a(psm2ctx->md, mdname)) { in sm2sig_set_mdname() 107 mdname); in sm2sig_set_mdname() 111 OPENSSL_strlcpy(psm2ctx->mdname, mdname, sizeof(psm2ctx->mdname)); in sm2sig_set_mdname() 129 strcpy(ctx->mdname, OSSL_DIGEST_NAME_SM3); in sm2sig_newctx() 204 static int sm2sig_digest_signverify_init(void *vpsm2ctx, const char *mdname, in sm2sig_digest_signverify_init() argument [all …]
|
/third_party/openssl/providers/implementations/signature/ |
D | dsa_sig.c | 78 char mdname[OSSL_MAX_NAME_SIZE]; member 121 const char *mdname, const char *mdprops) in dsa_setup_md() argument 126 if (mdname != NULL) { in dsa_setup_md() 129 EVP_MD *md = EVP_MD_fetch(ctx->libctx, mdname, mdprops); in dsa_setup_md() 132 size_t mdname_len = strlen(mdname); in dsa_setup_md() 137 "%s could not be fetched", mdname); in dsa_setup_md() 140 "digest=%s", mdname); in dsa_setup_md() 141 if (mdname_len >= sizeof(ctx->mdname)) in dsa_setup_md() 143 "%s exceeds name buffer length", mdname); in dsa_setup_md() 149 if (ctx->mdname[0] != '\0' && !EVP_MD_is_a(md, ctx->mdname)) { in dsa_setup_md() [all …]
|
D | ecdsa_sig.c | 67 char mdname[OSSL_MAX_NAME_SIZE]; member 215 static int ecdsa_setup_md(PROV_ECDSA_CTX *ctx, const char *mdname, in ecdsa_setup_md() argument 223 if (mdname == NULL) in ecdsa_setup_md() 226 mdname_len = strlen(mdname); in ecdsa_setup_md() 227 if (mdname_len >= sizeof(ctx->mdname)) { in ecdsa_setup_md() 229 "%s exceeds name buffer length", mdname); in ecdsa_setup_md() 234 md = EVP_MD_fetch(ctx->libctx, mdname, mdprops); in ecdsa_setup_md() 237 "%s could not be fetched", mdname); in ecdsa_setup_md() 245 "digest=%s", mdname); in ecdsa_setup_md() 251 if (ctx->mdname[0] != '\0' && !EVP_MD_is_a(md, ctx->mdname)) { in ecdsa_setup_md() [all …]
|
D | rsa_sig.c | 94 char mdname[OSSL_MAX_NAME_SIZE]; /* Purely informational */ member 123 const char *mdname, const char *mgf1_mdname, in rsa_check_padding() argument 128 if (mdname != NULL || mdnid != NID_undef) { in rsa_check_padding() 141 if ((mdname != NULL && !EVP_MD_is_a(prsactx->md, mdname)) in rsa_check_padding() 283 static int rsa_setup_md(PROV_RSA_CTX *ctx, const char *mdname, in rsa_setup_md() argument 289 if (mdname != NULL) { in rsa_setup_md() 290 EVP_MD *md = EVP_MD_fetch(ctx->libctx, mdname, mdprops); in rsa_setup_md() 294 size_t mdname_len = strlen(mdname); in rsa_setup_md() 298 || !rsa_check_padding(ctx, mdname, NULL, md_nid) in rsa_setup_md() 299 || mdname_len >= sizeof(ctx->mdname)) { in rsa_setup_md() [all …]
|
D | sm2_sig.c | 76 char mdname[OSSL_MAX_NAME_SIZE]; member 93 static int sm2sig_set_mdname(PROV_SM2_CTX *psm2ctx, const char *mdname) in sm2sig_set_mdname() argument 96 psm2ctx->md = EVP_MD_fetch(psm2ctx->libctx, psm2ctx->mdname, in sm2sig_set_mdname() 101 if (mdname == NULL) in sm2sig_set_mdname() 104 if (strlen(mdname) >= sizeof(psm2ctx->mdname) in sm2sig_set_mdname() 105 || !EVP_MD_is_a(psm2ctx->md, mdname)) { in sm2sig_set_mdname() 107 mdname); in sm2sig_set_mdname() 111 OPENSSL_strlcpy(psm2ctx->mdname, mdname, sizeof(psm2ctx->mdname)); in sm2sig_set_mdname() 129 strcpy(ctx->mdname, OSSL_DIGEST_NAME_SM3); in sm2sig_newctx() 204 static int sm2sig_digest_signverify_init(void *vpsm2ctx, const char *mdname, in sm2sig_digest_signverify_init() argument [all …]
|
/third_party/node/deps/openssl/openssl/crypto/evp/ |
D | m_sigver.c | 31 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() 40 const EVP_MD *type, const char *mdname, in do_sigver_init() argument 101 if (mdname == NULL && type == NULL) in do_sigver_init() 102 mdname = canon_mdname(EVP_MD_get0_name(ctx->reqdigest)); in do_sigver_init() 218 if (mdname == NULL) in do_sigver_init() 219 mdname = canon_mdname(EVP_MD_get0_name(type)); in do_sigver_init() 221 if (mdname == NULL && !reinit) { in do_sigver_init() 225 mdname = canon_mdname(locmdname); in do_sigver_init() [all …]
|
/third_party/openssl/crypto/evp/ |
D | m_sigver.c | 31 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() 40 const EVP_MD *type, const char *mdname, in do_sigver_init() argument 101 if (mdname == NULL && type == NULL) in do_sigver_init() 102 mdname = canon_mdname(EVP_MD_get0_name(ctx->reqdigest)); in do_sigver_init() 218 if (mdname == NULL) in do_sigver_init() 219 mdname = canon_mdname(EVP_MD_get0_name(type)); in do_sigver_init() 221 if (mdname == NULL && !reinit) { in do_sigver_init() 225 mdname = canon_mdname(locmdname); in do_sigver_init() [all …]
|
/third_party/openssl/providers/common/ |
D | provider_util.c | 168 const char *mdname, const char *propquery) in ossl_prov_digest_fetch() argument 171 pd->md = pd->alloc_md = EVP_MD_fetch(libctx, mdname, propquery); in ossl_prov_digest_fetch() 227 const char *mdname, in ossl_prov_set_macctx() argument 237 if (mdname == NULL) { in ossl_prov_set_macctx() 242 mdname = p->data; in ossl_prov_set_macctx() 263 if (mdname != NULL) in ossl_prov_set_macctx() 265 (char *)mdname, 0); in ossl_prov_set_macctx() 294 const char *mdname, in ossl_prov_macctx_load_from_params() argument 332 if (ossl_prov_set_macctx(*macctx, params, ciphername, mdname, NULL, in ossl_prov_macctx_load_from_params()
|
/third_party/node/deps/openssl/openssl/providers/common/ |
D | provider_util.c | 168 const char *mdname, const char *propquery) in ossl_prov_digest_fetch() argument 171 pd->md = pd->alloc_md = EVP_MD_fetch(libctx, mdname, propquery); in ossl_prov_digest_fetch() 227 const char *mdname, in ossl_prov_set_macctx() argument 237 if (mdname == NULL) { in ossl_prov_set_macctx() 242 mdname = p->data; in ossl_prov_set_macctx() 263 if (mdname != NULL) in ossl_prov_set_macctx() 265 (char *)mdname, 0); in ossl_prov_set_macctx() 294 const char *mdname, in ossl_prov_macctx_load_from_params() argument 332 if (ossl_prov_set_macctx(*macctx, params, ciphername, mdname, NULL, in ossl_prov_macctx_load_from_params()
|
/third_party/node/deps/openssl/openssl/providers/common/include/prov/ |
D | provider_util.h | 67 const char *mdname, const char *propquery); 98 const char *mdname, 125 const char *mdname,
|
/third_party/openssl/providers/common/include/prov/ |
D | provider_util.h | 67 const char *mdname, const char *propquery); 98 const char *mdname, 125 const char *mdname,
|
/third_party/node/deps/openssl/openssl/crypto/rsa/ |
D | rsa_lib.c | 882 const char *mdkey, const char *mdname, in int_set_rsa_md_name() argument 887 if (ctx == NULL || mdname == NULL || (ctx->operation & optype) == 0) { in int_set_rsa_md_name() 907 *p++ = OSSL_PARAM_construct_utf8_string(mdkey, (char *)mdname, 0); in int_set_rsa_md_name() 923 char *mdname, size_t mdnamesize) in int_get_rsa_md_name() argument 927 if (ctx == NULL || mdname == NULL || (ctx->operation & optype) == 0) { in int_get_rsa_md_name() 947 *p++ = OSSL_PARAM_construct_utf8_string(mdkey, (char *)mdname, mdnamesize); in int_get_rsa_md_name() 984 const char *mdname, in EVP_PKEY_CTX_set_rsa_pss_keygen_md_name() argument 988 OSSL_PKEY_PARAM_RSA_DIGEST, mdname, in EVP_PKEY_CTX_set_rsa_pss_keygen_md_name() 1002 int EVP_PKEY_CTX_set_rsa_oaep_md_name(EVP_PKEY_CTX *ctx, const char *mdname, in EVP_PKEY_CTX_set_rsa_oaep_md_name() argument 1007 OSSL_ASYM_CIPHER_PARAM_OAEP_DIGEST, mdname, in EVP_PKEY_CTX_set_rsa_oaep_md_name() [all …]
|
D | rsa_backend.c | 195 const char *mdname = in ossl_rsa_pss_params_30_todata() local 214 if ((mdname != NULL in ossl_rsa_pss_params_30_todata() 215 && !ossl_param_build_set_utf8_string(bld, params, key_md, mdname)) in ossl_rsa_pss_params_30_todata() 290 const char *mdname = NULL; in ossl_rsa_pss_params_30_fromdata() local 293 mdname = param_md->data; in ossl_rsa_pss_params_30_fromdata() 294 else if (!OSSL_PARAM_get_utf8_ptr(param_mgf, &mdname)) in ossl_rsa_pss_params_30_fromdata() 297 if ((md = EVP_MD_fetch(libctx, mdname, propq)) == NULL in ossl_rsa_pss_params_30_fromdata()
|
/third_party/openssl/crypto/rsa/ |
D | rsa_lib.c | 882 const char *mdkey, const char *mdname, in int_set_rsa_md_name() argument 887 if (ctx == NULL || mdname == NULL || (ctx->operation & optype) == 0) { in int_set_rsa_md_name() 907 *p++ = OSSL_PARAM_construct_utf8_string(mdkey, (char *)mdname, 0); in int_set_rsa_md_name() 923 char *mdname, size_t mdnamesize) in int_get_rsa_md_name() argument 927 if (ctx == NULL || mdname == NULL || (ctx->operation & optype) == 0) { in int_get_rsa_md_name() 947 *p++ = OSSL_PARAM_construct_utf8_string(mdkey, (char *)mdname, mdnamesize); in int_get_rsa_md_name() 984 const char *mdname, in EVP_PKEY_CTX_set_rsa_pss_keygen_md_name() argument 988 OSSL_PKEY_PARAM_RSA_DIGEST, mdname, in EVP_PKEY_CTX_set_rsa_pss_keygen_md_name() 1002 int EVP_PKEY_CTX_set_rsa_oaep_md_name(EVP_PKEY_CTX *ctx, const char *mdname, in EVP_PKEY_CTX_set_rsa_oaep_md_name() argument 1007 OSSL_ASYM_CIPHER_PARAM_OAEP_DIGEST, mdname, in EVP_PKEY_CTX_set_rsa_oaep_md_name() [all …]
|
D | rsa_backend.c | 195 const char *mdname = in ossl_rsa_pss_params_30_todata() local 214 if ((mdname != NULL in ossl_rsa_pss_params_30_todata() 215 && !ossl_param_build_set_utf8_string(bld, params, key_md, mdname)) in ossl_rsa_pss_params_30_todata() 290 const char *mdname = NULL; in ossl_rsa_pss_params_30_fromdata() local 293 mdname = param_md->data; in ossl_rsa_pss_params_30_fromdata() 294 else if (!OSSL_PARAM_get_utf8_ptr(param_mgf, &mdname)) in ossl_rsa_pss_params_30_fromdata() 297 if ((md = EVP_MD_fetch(libctx, mdname, propq)) == NULL in ossl_rsa_pss_params_30_fromdata()
|
/third_party/node/deps/openssl/openssl/crypto/crmf/ |
D | crmf_pbm.c | 135 char mdname[OSSL_MAX_NAME_SIZE]; in OSSL_CRMF_pbm_new() local 158 OBJ_obj2txt(mdname, sizeof(mdname), pbmp->owf->algorithm, 0); in OSSL_CRMF_pbm_new() 159 if ((owf = EVP_MD_fetch(libctx, mdname, propq)) == NULL) { in OSSL_CRMF_pbm_new()
|
/third_party/openssl/crypto/crmf/ |
D | crmf_pbm.c | 135 char mdname[OSSL_MAX_NAME_SIZE]; in OSSL_CRMF_pbm_new() local 158 OBJ_obj2txt(mdname, sizeof(mdname), pbmp->owf->algorithm, 0); in OSSL_CRMF_pbm_new() 159 if ((owf = EVP_MD_fetch(libctx, mdname, propq)) == NULL) { in OSSL_CRMF_pbm_new()
|
/third_party/node/deps/openssl/openssl/providers/implementations/asymciphers/ |
D | rsa_enc.c | 428 char mdname[OSSL_MAX_NAME_SIZE]; in rsa_set_ctx_params() local 439 str = mdname; in rsa_set_ctx_params() 440 if (!OSSL_PARAM_get_utf8_string(p, &str, sizeof(mdname))) in rsa_set_ctx_params() 452 prsactx->oaep_md = EVP_MD_fetch(prsactx->libctx, mdname, mdprops); in rsa_set_ctx_params() 502 str = mdname; in rsa_set_ctx_params() 503 if (!OSSL_PARAM_get_utf8_string(p, &str, sizeof(mdname))) in rsa_set_ctx_params() 517 prsactx->mgf1_md = EVP_MD_fetch(prsactx->libctx, mdname, str); in rsa_set_ctx_params()
|
/third_party/openssl/providers/implementations/asymciphers/ |
D | rsa_enc.c | 428 char mdname[OSSL_MAX_NAME_SIZE]; in rsa_set_ctx_params() local 439 str = mdname; in rsa_set_ctx_params() 440 if (!OSSL_PARAM_get_utf8_string(p, &str, sizeof(mdname))) in rsa_set_ctx_params() 452 prsactx->oaep_md = EVP_MD_fetch(prsactx->libctx, mdname, mdprops); in rsa_set_ctx_params() 502 str = mdname; in rsa_set_ctx_params() 503 if (!OSSL_PARAM_get_utf8_string(p, &str, sizeof(mdname))) in rsa_set_ctx_params() 517 prsactx->mgf1_md = EVP_MD_fetch(prsactx->libctx, mdname, str); in rsa_set_ctx_params()
|
/third_party/openssl/crypto/ffc/ |
D | ffc_params.c | 130 params->mdname = alg; in ossl_ffc_set_digest() 185 dst->mdname = src->mdname; in ossl_ffc_params_copy() 270 if (ffc->mdname != NULL in ossl_ffc_params_todata() 273 ffc->mdname)) in ossl_ffc_params_todata()
|
/third_party/node/deps/openssl/openssl/crypto/ffc/ |
D | ffc_params.c | 130 params->mdname = alg; in ossl_ffc_set_digest() 185 dst->mdname = src->mdname; in ossl_ffc_params_copy() 270 if (ffc->mdname != NULL in ossl_ffc_params_todata() 273 ffc->mdname)) in ossl_ffc_params_todata()
|
/third_party/openssl/crypto/ec/ |
D | ecdh_kdf.c | 33 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()
|