Home
last modified time | relevance | path

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

/external/boringssl/src/crypto/x509/
Drsa_pss.c126 static int rsa_md_to_mgf1(X509_ALGOR **palg, const EVP_MD *mgf1md) { in rsa_md_to_mgf1() argument
131 if (EVP_MD_type(mgf1md) == NID_sha1) { in rsa_md_to_mgf1()
135 if (!rsa_md_to_algor(&algtmp, mgf1md) || in rsa_md_to_mgf1()
190 const EVP_MD *sigmd, *mgf1md; in x509_rsa_ctx_to_pss() local
193 !EVP_PKEY_CTX_get_rsa_mgf1_md(ctx->pctx, &mgf1md) || in x509_rsa_ctx_to_pss()
226 !rsa_md_to_mgf1(&pss->maskGenAlgorithm, mgf1md)) { in x509_rsa_ctx_to_pss()
257 const EVP_MD *mgf1md = rsa_mgf1_to_md(pss->maskGenAlgorithm, maskHash); in x509_rsa_pss_to_ctx() local
259 if (mgf1md == NULL || md == NULL) { in x509_rsa_pss_to_ctx()
286 !EVP_PKEY_CTX_set_rsa_mgf1_md(pctx, mgf1md)) { in x509_rsa_pss_to_ctx()
/external/boringssl/src/crypto/evp/
Dp_rsa.c84 const EVP_MD *mgf1md; member
134 dctx->mgf1md = sctx->mgf1md; in pkey_rsa_copy()
199 rctx->md, rctx->mgf1md, rctx->saltlen); in pkey_rsa_sign()
221 return RSA_verify_pss_mgf1(rsa, tbs, tbslen, rctx->md, rctx->mgf1md, in pkey_rsa_verify()
327 rctx->md, rctx->mgf1md) || in pkey_rsa_encrypt()
362 rctx->oaep_labellen, rctx->md, rctx->mgf1md)) { in pkey_rsa_decrypt()
483 if (rctx->mgf1md) { in pkey_rsa_ctrl()
484 *(const EVP_MD **)p2 = rctx->mgf1md; in pkey_rsa_ctrl()
489 rctx->mgf1md = p2; in pkey_rsa_ctrl()
/external/boringssl/src/crypto/fipsmodule/rsa/
Dpadding.c316 const EVP_MD *md, const EVP_MD *mgf1md) { in RSA_padding_add_PKCS1_OAEP_mgf1() argument
320 if (mgf1md == NULL) { in RSA_padding_add_PKCS1_OAEP_mgf1()
321 mgf1md = md; in RSA_padding_add_PKCS1_OAEP_mgf1()
363 if (!PKCS1_MGF1(dbmask, emlen - mdlen, seed, mdlen, mgf1md)) { in RSA_padding_add_PKCS1_OAEP_mgf1()
371 if (!PKCS1_MGF1(seedmask, mdlen, db, emlen - mdlen, mgf1md)) { in RSA_padding_add_PKCS1_OAEP_mgf1()
388 const EVP_MD *mgf1md) { in RSA_padding_check_PKCS1_OAEP_mgf1() argument
394 if (mgf1md == NULL) { in RSA_padding_check_PKCS1_OAEP_mgf1()
395 mgf1md = md; in RSA_padding_check_PKCS1_OAEP_mgf1()
420 if (!PKCS1_MGF1(seed, mdlen, maskeddb, dblen, mgf1md)) { in RSA_padding_check_PKCS1_OAEP_mgf1()
427 if (!PKCS1_MGF1(db, dblen, seed, mdlen, mgf1md)) { in RSA_padding_check_PKCS1_OAEP_mgf1()
Dinternal.h106 const EVP_MD *mgf1md);
/external/boringssl/src/include/openssl/
Drsa.h416 const EVP_MD *mgf1md);