Searched refs:mgf1md (Results 1 – 4 of 4) sorted by relevance
/external/boringssl/src/crypto/evp/ |
D | p_rsa.c | 83 const EVP_MD *mgf1md; member 128 dctx->mgf1md = sctx->mgf1md; in pkey_rsa_copy() 205 rctx->mgf1md, rctx->saltlen) || in pkey_rsa_sign() 237 !RSA_verify_PKCS1_PSS_mgf1(rsa, tbs, rctx->md, rctx->mgf1md, in pkey_rsa_verify() 279 rctx->md, rctx->mgf1md) || in pkey_rsa_encrypt() 319 rctx->oaep_labellen, rctx->md, rctx->mgf1md); in pkey_rsa_decrypt() 442 if (rctx->mgf1md) { in pkey_rsa_ctrl() 443 *(const EVP_MD **)p2 = rctx->mgf1md; in pkey_rsa_ctrl() 448 rctx->mgf1md = p2; in pkey_rsa_ctrl()
|
D | p_rsa_asn1.c | 477 static int rsa_md_to_mgf1(X509_ALGOR **palg, const EVP_MD *mgf1md) { in rsa_md_to_mgf1() argument 482 if (EVP_MD_type(mgf1md) == NID_sha1) { in rsa_md_to_mgf1() 486 if (!rsa_md_to_algor(&algtmp, mgf1md) || in rsa_md_to_mgf1() 546 const EVP_MD *sigmd, *mgf1md; in rsa_ctx_to_pss() local 553 !EVP_PKEY_CTX_get_rsa_mgf1_md(pkctx, &mgf1md) || in rsa_ctx_to_pss() 583 !rsa_md_to_mgf1(&pss->maskGenAlgorithm, mgf1md)) { in rsa_ctx_to_pss() 610 const EVP_MD *mgf1md = NULL, *md = NULL; in rsa_pss_to_ctx() local 627 mgf1md = rsa_mgf1_to_md(pss->maskGenAlgorithm, maskHash); in rsa_pss_to_ctx() 628 if (!mgf1md) { in rsa_pss_to_ctx() 658 !EVP_PKEY_CTX_set_rsa_mgf1_md(pkctx, mgf1md)) { in rsa_pss_to_ctx()
|
/external/boringssl/src/crypto/rsa/ |
D | padding.c | 325 const EVP_MD *md, const EVP_MD *mgf1md) { in RSA_padding_add_PKCS1_OAEP_mgf1() argument 334 if (mgf1md == NULL) { in RSA_padding_add_PKCS1_OAEP_mgf1() 335 mgf1md = md; in RSA_padding_add_PKCS1_OAEP_mgf1() 376 if (PKCS1_MGF1(dbmask, emlen - mdlen, seed, mdlen, mgf1md) < 0) { in RSA_padding_add_PKCS1_OAEP_mgf1() 383 if (PKCS1_MGF1(seedmask, mdlen, db, emlen - mdlen, mgf1md) < 0) { in RSA_padding_add_PKCS1_OAEP_mgf1() 399 const EVP_MD *md, const EVP_MD *mgf1md) { in RSA_padding_check_PKCS1_OAEP_mgf1() argument 407 if (mgf1md == NULL) { in RSA_padding_check_PKCS1_OAEP_mgf1() 408 mgf1md = md; in RSA_padding_check_PKCS1_OAEP_mgf1() 432 if (PKCS1_MGF1(seed, mdlen, maskeddb, dblen, mgf1md)) { in RSA_padding_check_PKCS1_OAEP_mgf1() 439 if (PKCS1_MGF1(db, dblen, seed, mdlen, mgf1md)) { in RSA_padding_check_PKCS1_OAEP_mgf1()
|
D | internal.h | 125 const EVP_MD *md, const EVP_MD *mgf1md); 129 const EVP_MD *md, const EVP_MD *mgf1md);
|