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() 443 if (rctx->mgf1md) { in pkey_rsa_ctrl() 444 *(const EVP_MD **)p2 = rctx->mgf1md; in pkey_rsa_ctrl() 449 rctx->mgf1md = p2; in pkey_rsa_ctrl()
|
D | p_rsa_asn1.c | 439 static int rsa_md_to_mgf1(X509_ALGOR **palg, const EVP_MD *mgf1md) { in rsa_md_to_mgf1() argument 444 if (EVP_MD_type(mgf1md) == NID_sha1) { in rsa_md_to_mgf1() 448 if (!rsa_md_to_algor(&algtmp, mgf1md) || in rsa_md_to_mgf1() 508 const EVP_MD *sigmd, *mgf1md; in rsa_ctx_to_pss() local 515 !EVP_PKEY_CTX_get_rsa_mgf1_md(pkctx, &mgf1md) || in rsa_ctx_to_pss() 545 !rsa_md_to_mgf1(&pss->maskGenAlgorithm, mgf1md)) { in rsa_ctx_to_pss() 572 const EVP_MD *mgf1md = NULL, *md = NULL; in rsa_pss_to_ctx() local 589 mgf1md = rsa_mgf1_to_md(pss->maskGenAlgorithm, maskHash); in rsa_pss_to_ctx() 590 if (!mgf1md) { in rsa_pss_to_ctx() 620 !EVP_PKEY_CTX_set_rsa_mgf1_md(pkctx, mgf1md)) { in rsa_pss_to_ctx()
|
/external/boringssl/src/crypto/rsa/ |
D | padding.c | 375 const EVP_MD *md, const EVP_MD *mgf1md) { in RSA_padding_add_PKCS1_OAEP_mgf1() argument 384 if (mgf1md == NULL) { in RSA_padding_add_PKCS1_OAEP_mgf1() 385 mgf1md = md; in RSA_padding_add_PKCS1_OAEP_mgf1() 430 if (PKCS1_MGF1(dbmask, emlen - mdlen, seed, mdlen, mgf1md) < 0) { in RSA_padding_add_PKCS1_OAEP_mgf1() 437 if (PKCS1_MGF1(seedmask, mdlen, db, emlen - mdlen, mgf1md) < 0) { in RSA_padding_add_PKCS1_OAEP_mgf1() 453 const EVP_MD *md, const EVP_MD *mgf1md) { in RSA_padding_check_PKCS1_OAEP_mgf1() argument 462 if (mgf1md == NULL) { in RSA_padding_check_PKCS1_OAEP_mgf1() 463 mgf1md = md; in RSA_padding_check_PKCS1_OAEP_mgf1() 488 if (PKCS1_MGF1(seed, mdlen, maskeddb, dblen, mgf1md)) { in RSA_padding_check_PKCS1_OAEP_mgf1() 495 if (PKCS1_MGF1(db, dblen, seed, mdlen, mgf1md)) { in RSA_padding_check_PKCS1_OAEP_mgf1()
|
D | internal.h | 105 const EVP_MD *md, const EVP_MD *mgf1md); 109 const EVP_MD *md, const EVP_MD *mgf1md);
|