Lines Matching refs:ri
81 static int dh_cms_set_shared_info(EVP_PKEY_CTX *pctx, CMS_RecipientInfo *ri) in dh_cms_set_shared_info() argument
94 if (!CMS_RecipientInfo_kari_get0_alg(ri, &alg, &ukm)) in dh_cms_set_shared_info()
118 kekctx = CMS_RecipientInfo_kari_get0_ctx(ri); in dh_cms_set_shared_info()
162 static int dh_cms_decrypt(CMS_RecipientInfo *ri) in dh_cms_decrypt() argument
164 EVP_PKEY_CTX *pctx = CMS_RecipientInfo_get0_pkey_ctx(ri); in dh_cms_decrypt()
173 if (!CMS_RecipientInfo_kari_get0_orig_id(ri, &alg, &pubkey, in dh_cms_decrypt()
184 if (!dh_cms_set_shared_info(pctx, ri)) { in dh_cms_decrypt()
191 static int dh_cms_encrypt(CMS_RecipientInfo *ri) in dh_cms_encrypt() argument
209 pctx = CMS_RecipientInfo_get0_pkey_ctx(ri); in dh_cms_encrypt()
214 if (!CMS_RecipientInfo_kari_get0_orig_id(ri, &talg, &pubkey, in dh_cms_encrypt()
266 if (!CMS_RecipientInfo_kari_get0_alg(ri, &talg, &ukm)) in dh_cms_encrypt()
270 ctx = CMS_RecipientInfo_kari_get0_ctx(ri); in dh_cms_encrypt()
331 int ossl_cms_dh_envelope(CMS_RecipientInfo *ri, int decrypt) in ossl_cms_dh_envelope() argument
336 return dh_cms_decrypt(ri); in ossl_cms_dh_envelope()
339 return dh_cms_encrypt(ri); in ossl_cms_dh_envelope()