Searched refs:pkctx (Results 1 – 10 of 10) sorted by relevance
/openssl/crypto/cms/ |
H A D | cms_rsa.c | 41 EVP_PKEY_CTX *pkctx; in rsa_cms_decrypt() local 50 pkctx = CMS_RecipientInfo_get0_pkey_ctx(ri); in rsa_cms_decrypt() 51 if (pkctx == NULL) in rsa_cms_decrypt() 97 if (EVP_PKEY_CTX_set_rsa_oaep_md(pkctx, md) <= 0) in rsa_cms_decrypt() 127 if (pkctx != NULL) { in rsa_cms_encrypt() 138 if (EVP_PKEY_CTX_get_rsa_oaep_md(pkctx, &md) <= 0) in rsa_cms_encrypt() 206 if (pkctx != NULL) { in rsa_cms_sign() 218 if (evp_pkey_ctx_is_legacy(pkctx)) { in rsa_cms_sign() 222 os = ossl_rsa_ctx_to_pss_string(pkctx); in rsa_cms_sign() 235 if (EVP_PKEY_CTX_get_params(pkctx, params) <= 0) in rsa_cms_sign() [all …]
|
H A D | cms_sd.c | 1001 EVP_PKEY_CTX *pkctx = NULL; in CMS_SignerInfo_verify_content() local 1046 pkctx = EVP_PKEY_CTX_new_from_pkey(ossl_cms_ctx_get0_libctx(ctx), in CMS_SignerInfo_verify_content() 1049 if (pkctx == NULL) in CMS_SignerInfo_verify_content() 1051 if (EVP_PKEY_verify_init(pkctx) <= 0) in CMS_SignerInfo_verify_content() 1053 if (EVP_PKEY_CTX_set_signature_md(pkctx, md) <= 0) in CMS_SignerInfo_verify_content() 1055 si->pctx = pkctx; in CMS_SignerInfo_verify_content() 1061 r = EVP_PKEY_verify(pkctx, si->signature->data, in CMS_SignerInfo_verify_content() 1070 EVP_PKEY_CTX_free(pkctx); in CMS_SignerInfo_verify_content()
|
/openssl/crypto/evp/ |
H A D | p_verify.c | 24 EVP_PKEY_CTX *pkctx = NULL; in EVP_VerifyFinal_ex() local 48 pkctx = EVP_PKEY_CTX_new_from_pkey(libctx, pkey, propq); in EVP_VerifyFinal_ex() 49 if (pkctx == NULL) in EVP_VerifyFinal_ex() 51 if (EVP_PKEY_verify_init(pkctx) <= 0) in EVP_VerifyFinal_ex() 53 if (EVP_PKEY_CTX_set_signature_md(pkctx, EVP_MD_CTX_get0_md(ctx)) <= 0) in EVP_VerifyFinal_ex() 55 i = EVP_PKEY_verify(pkctx, sigbuf, siglen, m, m_len); in EVP_VerifyFinal_ex() 57 EVP_PKEY_CTX_free(pkctx); in EVP_VerifyFinal_ex()
|
H A D | p_sign.c | 25 EVP_PKEY_CTX *pkctx = NULL; in EVP_SignFinal_ex() local 51 pkctx = EVP_PKEY_CTX_new_from_pkey(libctx, pkey, propq); in EVP_SignFinal_ex() 52 if (pkctx == NULL) in EVP_SignFinal_ex() 54 if (EVP_PKEY_sign_init(pkctx) <= 0) in EVP_SignFinal_ex() 56 if (EVP_PKEY_CTX_set_signature_md(pkctx, EVP_MD_CTX_get0_md(ctx)) <= 0) in EVP_SignFinal_ex() 58 if (EVP_PKEY_sign(pkctx, sigret, &sltmp, m, m_len) <= 0) in EVP_SignFinal_ex() 63 EVP_PKEY_CTX_free(pkctx); in EVP_SignFinal_ex()
|
/openssl/crypto/rsa/ |
H A D | rsa_ameth.c | 451 static RSA_PSS_PARAMS *rsa_ctx_to_pss(EVP_PKEY_CTX *pkctx) in rsa_ctx_to_pss() argument 454 EVP_PKEY *pk = EVP_PKEY_CTX_get0_pkey(pkctx); in rsa_ctx_to_pss() 459 if (EVP_PKEY_CTX_get_signature_md(pkctx, &sigmd) <= 0) in rsa_ctx_to_pss() 464 if (EVP_PKEY_CTX_get_rsa_mgf1_md(pkctx, &mgf1md) <= 0) in rsa_ctx_to_pss() 522 ASN1_STRING *ossl_rsa_ctx_to_pss_string(EVP_PKEY_CTX *pkctx) in ossl_rsa_ctx_to_pss_string() argument 524 RSA_PSS_PARAMS *pss = rsa_ctx_to_pss(pkctx); in ossl_rsa_ctx_to_pss_string() 582 if (EVP_PKEY_CTX_set_rsa_mgf1_md(pkctx, mgf1md) <= 0) in ossl_rsa_pss_to_ctx() 654 EVP_PKEY_CTX *pkctx = EVP_MD_CTX_get_pkey_ctx(ctx); in rsa_item_sign() local 665 if (evp_pkey_ctx_is_legacy(pkctx)) { in rsa_item_sign() 669 os1 = ossl_rsa_ctx_to_pss_string(pkctx); in rsa_item_sign() [all …]
|
/openssl/crypto/crmf/ |
H A D | crmf_lib.c | 637 EVP_PKEY_CTX *pkctx = NULL; /* private key context */ in OSSL_CRMF_ENCRYPTEDVALUE_get1_encCert() local 664 pkctx = EVP_PKEY_CTX_new_from_pkey(libctx, pkey, propq); in OSSL_CRMF_ENCRYPTEDVALUE_get1_encCert() 665 if (pkctx == NULL || EVP_PKEY_decrypt_init(pkctx) <= 0 in OSSL_CRMF_ENCRYPTEDVALUE_get1_encCert() 666 || evp_pkey_decrypt_alloc(pkctx, &ek, &eksize, (size_t)cikeysize, in OSSL_CRMF_ENCRYPTEDVALUE_get1_encCert() 706 EVP_PKEY_CTX_free(pkctx); in OSSL_CRMF_ENCRYPTEDVALUE_get1_encCert()
|
/openssl/include/crypto/ |
H A D | rsa.h | 123 ASN1_STRING *ossl_rsa_ctx_to_pss_string(EVP_PKEY_CTX *pkctx); 124 int ossl_rsa_pss_to_ctx(EVP_MD_CTX *ctx, EVP_PKEY_CTX *pkctx,
|
/openssl/crypto/ocsp/ |
H A D | ocsp_srv.c | 220 EVP_PKEY_CTX *pkctx = NULL; in OCSP_basic_sign() local 226 if (!EVP_DigestSignInit_ex(ctx, &pkctx, EVP_MD_get0_name(dgst), in OCSP_basic_sign()
|
/openssl/apps/ |
H A D | ocsp.c | 1041 EVP_PKEY_CTX *pkctx = NULL; in make_ocsp_response() local 1142 if (mctx == NULL || !EVP_DigestSignInit(mctx, &pkctx, rmd, NULL, rkey)) { in make_ocsp_response() 1149 if (pkey_ctrl_string(pkctx, sigopt) <= 0) { in make_ocsp_response()
|
/openssl/apps/lib/ |
H A D | apps.c | 2212 static int do_pkey_ctx_init(EVP_PKEY_CTX *pkctx, STACK_OF(OPENSSL_STRING) *opts) in do_pkey_ctx_init() argument 2222 if (pkey_ctrl_string(pkctx, opt) <= 0) { in do_pkey_ctx_init() 2275 EVP_PKEY_CTX *pkctx = NULL; in do_sign_init() local 2290 return EVP_DigestSignInit_ex(ctx, &pkctx, md, app_get0_libctx(), in do_sign_init() 2292 && do_pkey_ctx_init(pkctx, sigopts); in do_sign_init()
|
Completed in 44 milliseconds