Home
last modified time | relevance | path

Searched refs:mgf1md (Results 1 – 13 of 13) sorted by relevance

/openssl/crypto/rsa/
H A Drsa_oaep.c59 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()
85 if (EVP_MD_xof(mgf1md)) { in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex()
131 if (PKCS1_MGF1(dbmask, dbmask_len, seed, mdlen, mgf1md) < 0) in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex()
172 const EVP_MD *mgf1md) in RSA_padding_check_PKCS1_OAEP_mgf1() argument
194 if (mgf1md == NULL) in RSA_padding_check_PKCS1_OAEP_mgf1()
195 mgf1md = md; in RSA_padding_check_PKCS1_OAEP_mgf1()
203 if (EVP_MD_xof(mgf1md)) { in RSA_padding_check_PKCS1_OAEP_mgf1()
258 if (PKCS1_MGF1(seed, mdlen, maskeddb, dblen, mgf1md)) in RSA_padding_check_PKCS1_OAEP_mgf1()
[all …]
H A Drsa_ameth.c423 const EVP_MD *mgf1md; in rsa_pkey_ctrl() local
453 const EVP_MD *sigmd, *mgf1md; in rsa_ctx_to_pss() local
464 if (EVP_PKEY_CTX_get_rsa_mgf1_md(pkctx, &mgf1md) <= 0) in rsa_ctx_to_pss()
510 if (mgf1md == NULL) in ossl_rsa_pss_params_create()
511 mgf1md = sigmd; in ossl_rsa_pss_params_create()
546 const EVP_MD *mgf1md = NULL, *md = NULL; in ossl_rsa_pss_to_ctx() local
582 if (EVP_PKEY_CTX_set_rsa_mgf1_md(pkctx, mgf1md) <= 0) in ossl_rsa_pss_to_ctx()
728 const EVP_MD *mgf1md = NULL, *md = NULL; in rsa_sig_info_set() local
748 && mdnid == EVP_MD_get_type(mgf1md) in rsa_sig_info_set()
818 const EVP_MD *md = NULL, *mgf1md = NULL; in rsa_int_export_to() local
[all …]
H A Drsa_pmeth.c45 const EVP_MD *mgf1md; member
101 dctx->mgf1md = sctx->mgf1md; in pkey_rsa_copy()
195 rctx->md, rctx->mgf1md, in pkey_rsa_sign()
303 rctx->md, rctx->mgf1md, in pkey_rsa_verify()
348 rctx->md, rctx->mgf1md)) in pkey_rsa_encrypt()
579 if (rctx->mgf1md) in pkey_rsa_ctrl()
580 *(const EVP_MD **)p2 = rctx->mgf1md; in pkey_rsa_ctrl()
590 rctx->mgf1md = p2; in pkey_rsa_ctrl()
774 rsa->pss = ossl_rsa_pss_params_create(rctx->md, rctx->mgf1md, in rsa_set_pss_param()
871 const EVP_MD *mgf1md; in pkey_pss_init() local
[all …]
H A Drsa_backend.c360 EVP_MD *md = NULL, *mgf1md = NULL; in ossl_rsa_pss_params_30_fromdata() local
435 if ((mgf1md = EVP_MD_fetch(libctx, mgf1mdname, propq)) == NULL in ossl_rsa_pss_params_30_fromdata()
437 pss_params, ossl_rsa_oaeppss_md2nid(mgf1md))) in ossl_rsa_pss_params_30_fromdata()
451 EVP_MD_free(mgf1md); in ossl_rsa_pss_params_30_fromdata()
596 const EVP_MD *md = NULL, *mgf1md = NULL; in ossl_rsa_sync_to_pss_params_30() local
609 if (!ossl_rsa_pss_get_param_unverified(legacy_pss, &md, &mgf1md, in ossl_rsa_sync_to_pss_params_30()
613 mgf1md_nid = EVP_MD_get_type(mgf1md); in ossl_rsa_sync_to_pss_params_30()
H A Drsa_local.h159 const EVP_MD *mgf1md, int saltlen);
/openssl/crypto/cms/
H A Dcms_rsa.c47 const EVP_MD *mgf1md = NULL, *md = NULL; in rsa_cms_decrypt() local
70 mgf1md = ossl_x509_algor_get_md(oaep->maskHash); in rsa_cms_decrypt()
71 if (mgf1md == NULL) in rsa_cms_decrypt()
99 if (EVP_PKEY_CTX_set_rsa_mgf1_md(pkctx, mgf1md) <= 0) in rsa_cms_decrypt()
116 const EVP_MD *md, *mgf1md; in rsa_cms_encrypt() local
140 if (EVP_PKEY_CTX_get_rsa_mgf1_md(pkctx, &mgf1md) <= 0) in rsa_cms_encrypt()
150 if (!ossl_x509_algor_md_to_mgf1(&oaep->maskGenFunc, mgf1md)) in rsa_cms_encrypt()
/openssl/crypto/asn1/
H A Dx_algor.c178 int ossl_x509_algor_md_to_mgf1(X509_ALGOR **palg, const EVP_MD *mgf1md) in ossl_x509_algor_md_to_mgf1() argument
184 if (mgf1md == NULL || EVP_MD_is_a(mgf1md, "SHA1")) in ossl_x509_algor_md_to_mgf1()
187 if (!ossl_x509_algor_new_from_md(&algtmp, mgf1md)) in ossl_x509_algor_md_to_mgf1()
/openssl/doc/man3/
H A DRSA_padding_add_PKCS1_type_1.pod43 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.
/openssl/include/crypto/
H A Drsa.h106 const EVP_MD *mgf1md);
H A Dasn1.h142 int ossl_x509_algor_md_to_mgf1(X509_ALGOR **palg, const EVP_MD *mgf1md);
/openssl/include/openssl/
H A Drsa.h415 const EVP_MD *md, const EVP_MD *mgf1md);
421 const EVP_MD *md, const EVP_MD *mgf1md);
/openssl/crypto/x509/
H A Dx_all.c544 const EVP_MD *mgf1md, *mmd = NULL; in X509_digest_sig() local
548 || !ossl_rsa_pss_get_param_unverified(pss, &mmd, &mgf1md, in X509_digest_sig()
/openssl/test/
H A Devp_extra_test.c3308 char mgf1md[30] = { '\0' }; in test_RSA_OAEP_set_get_params() local
3313 mgf1md, sizeof(mgf1md)); in test_RSA_OAEP_set_get_params()
3320 || !TEST_str_eq(mgf1md, OSSL_DIGEST_NAME_SHA1)) in test_RSA_OAEP_set_get_params()

Completed in 102 milliseconds