/third_party/openssl/crypto/rsa/ |
D | rsa_oaep.c | 59 const EVP_MD *mgf1md) in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex() argument 76 if (mgf1md == NULL) in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex() 77 mgf1md = md; in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex() 121 if (PKCS1_MGF1(dbmask, dbmask_len, seed, mdlen, mgf1md) < 0) in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex() 128 if (PKCS1_MGF1(seedmask, mdlen, db, dbmask_len, mgf1md) < 0) in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex() 144 const EVP_MD *md, const EVP_MD *mgf1md) in RSA_padding_add_PKCS1_OAEP_mgf1() argument 147 param, plen, md, mgf1md); in RSA_padding_add_PKCS1_OAEP_mgf1() 162 const EVP_MD *mgf1md) in RSA_padding_check_PKCS1_OAEP_mgf1() argument 184 if (mgf1md == NULL) in RSA_padding_check_PKCS1_OAEP_mgf1() 185 mgf1md = md; in RSA_padding_check_PKCS1_OAEP_mgf1() [all …]
|
D | rsa_ameth.c | 420 const EVP_MD *mgf1md; in rsa_pkey_ctrl() local 426 if (!ossl_rsa_pss_get_param(pkey->pkey.rsa->pss, &md, &mgf1md, in rsa_pkey_ctrl() 450 const EVP_MD *sigmd, *mgf1md; in rsa_ctx_to_pss() local 456 if (EVP_PKEY_CTX_get_rsa_mgf1_md(pkctx, &mgf1md) <= 0) in rsa_ctx_to_pss() 470 return ossl_rsa_pss_params_create(sigmd, mgf1md, saltlen); in rsa_ctx_to_pss() 474 const EVP_MD *mgf1md, int saltlen) in ossl_rsa_pss_params_create() argument 489 if (mgf1md == NULL) in ossl_rsa_pss_params_create() 490 mgf1md = sigmd; in ossl_rsa_pss_params_create() 491 if (!ossl_x509_algor_md_to_mgf1(&pss->maskGenAlgorithm, mgf1md)) in ossl_rsa_pss_params_create() 493 if (!ossl_x509_algor_new_from_md(&pss->maskHash, mgf1md)) in ossl_rsa_pss_params_create() [all …]
|
D | rsa_pmeth.c | 45 const EVP_MD *mgf1md; member 98 dctx->mgf1md = sctx->mgf1md; in pkey_rsa_copy() 186 rctx->md, rctx->mgf1md, in pkey_rsa_sign() 288 rctx->md, rctx->mgf1md, in pkey_rsa_verify() 333 rctx->md, rctx->mgf1md)) in pkey_rsa_encrypt() 368 rctx->md, rctx->mgf1md); in pkey_rsa_decrypt() 552 if (rctx->mgf1md) in pkey_rsa_ctrl() 553 *(const EVP_MD **)p2 = rctx->mgf1md; in pkey_rsa_ctrl() 558 if (EVP_MD_get_type(rctx->mgf1md) == EVP_MD_get_type(p2)) in pkey_rsa_ctrl() 563 rctx->mgf1md = p2; in pkey_rsa_ctrl() [all …]
|
D | rsa_backend.c | 236 EVP_MD *md = NULL, *mgf1md = NULL; in ossl_rsa_pss_params_30_fromdata() local 311 if ((mgf1md = EVP_MD_fetch(libctx, mgf1mdname, propq)) == NULL in ossl_rsa_pss_params_30_fromdata() 313 pss_params, ossl_rsa_oaeppss_md2nid(mgf1md))) in ossl_rsa_pss_params_30_fromdata() 327 EVP_MD_free(mgf1md); in ossl_rsa_pss_params_30_fromdata() 474 const EVP_MD *md = NULL, *mgf1md = NULL; in ossl_rsa_sync_to_pss_params_30() local 487 if (!ossl_rsa_pss_get_param_unverified(legacy_pss, &md, &mgf1md, in ossl_rsa_sync_to_pss_params_30() 491 mgf1md_nid = EVP_MD_get_type(mgf1md); in ossl_rsa_sync_to_pss_params_30()
|
D | rsa_local.h | 155 const EVP_MD *mgf1md, int saltlen);
|
/third_party/openssl/crypto/cms/ |
D | cms_rsa.c | 45 const EVP_MD *mgf1md = NULL, *md = NULL; in rsa_cms_decrypt() local 68 mgf1md = ossl_x509_algor_get_md(oaep->maskHash); in rsa_cms_decrypt() 69 if (mgf1md == NULL) in rsa_cms_decrypt() 97 if (EVP_PKEY_CTX_set_rsa_mgf1_md(pkctx, mgf1md) <= 0) in rsa_cms_decrypt() 112 const EVP_MD *md, *mgf1md; in rsa_cms_encrypt() local 135 if (EVP_PKEY_CTX_get_rsa_mgf1_md(pkctx, &mgf1md) <= 0) in rsa_cms_encrypt() 145 if (!ossl_x509_algor_md_to_mgf1(&oaep->maskGenFunc, mgf1md)) in rsa_cms_encrypt()
|
/third_party/openssl/crypto/asn1/ |
D | x_algor.c | 166 int ossl_x509_algor_md_to_mgf1(X509_ALGOR **palg, const EVP_MD *mgf1md) in ossl_x509_algor_md_to_mgf1() argument 172 if (mgf1md == NULL || EVP_MD_is_a(mgf1md, "SHA1")) in ossl_x509_algor_md_to_mgf1() 175 if (!ossl_x509_algor_new_from_md(&algtmp, mgf1md)) in ossl_x509_algor_md_to_mgf1()
|
/third_party/openssl/doc/man3/ |
D | RSA_padding_add_PKCS1_type_1.pod | 43 const EVP_MD *md, const EVP_MD *mgf1md); 48 const EVP_MD *md, const EVP_MD *mgf1md); 112 if B<md> is B<NULL> that means md=sha1, and B<mgf1md> points to 113 the mgf1 hash, if B<mgf1md> is B<NULL> that means mgf1md=md.
|
/third_party/openssl/include/crypto/ |
D | rsa.h | 96 const EVP_MD *mgf1md);
|
D | asn1.h | 142 int ossl_x509_algor_md_to_mgf1(X509_ALGOR **palg, const EVP_MD *mgf1md);
|
/third_party/openssl/ohos_lite/include/openssl/ |
D | rsa.h | 356 const EVP_MD *md, const EVP_MD *mgf1md); 361 const EVP_MD *mgf1md);
|
/third_party/openssl/include/openssl/ |
D | rsa.h | 404 const EVP_MD *md, const EVP_MD *mgf1md); 410 const EVP_MD *md, const EVP_MD *mgf1md);
|
/third_party/openssl/crypto/x509/ |
D | x_all.c | 499 const EVP_MD *mgf1md, *mmd = NULL; in X509_digest_sig() local 503 || !ossl_rsa_pss_get_param_unverified(pss, &mmd, &mgf1md, in X509_digest_sig()
|
/third_party/openssl/test/ |
D | evp_extra_test.c | 2785 char mgf1md[30] = { '\0' }; in test_RSA_OAEP_set_get_params() local 2790 mgf1md, sizeof(mgf1md)); in test_RSA_OAEP_set_get_params() 2797 || !TEST_str_eq(mgf1md, OSSL_DIGEST_NAME_SHA1)) in test_RSA_OAEP_set_get_params()
|