Lines Matching refs:ri
159 static int ecdh_cms_set_shared_info(EVP_PKEY_CTX *pctx, CMS_RecipientInfo *ri) in ecdh_cms_set_shared_info() argument
171 if (!CMS_RecipientInfo_kari_get0_alg(ri, &alg, &ukm)) in ecdh_cms_set_shared_info()
187 kekctx = CMS_RecipientInfo_kari_get0_ctx(ri); in ecdh_cms_set_shared_info()
220 static int ecdh_cms_decrypt(CMS_RecipientInfo *ri) in ecdh_cms_decrypt() argument
224 pctx = CMS_RecipientInfo_get0_pkey_ctx(ri); in ecdh_cms_decrypt()
232 if (!CMS_RecipientInfo_kari_get0_orig_id(ri, &alg, &pubkey, in ecdh_cms_decrypt()
243 if (!ecdh_cms_set_shared_info(pctx, ri)) { in ecdh_cms_decrypt()
250 static int ecdh_cms_encrypt(CMS_RecipientInfo *ri) in ecdh_cms_encrypt() argument
267 pctx = CMS_RecipientInfo_get0_pkey_ctx(ri); in ecdh_cms_encrypt()
272 if (!CMS_RecipientInfo_kari_get0_orig_id(ri, &talg, &pubkey, in ecdh_cms_encrypt()
320 if (!CMS_RecipientInfo_kari_get0_alg(ri, &talg, &ukm)) in ecdh_cms_encrypt()
328 ctx = CMS_RecipientInfo_kari_get0_ctx(ri); in ecdh_cms_encrypt()
382 int ossl_cms_ecdh_envelope(CMS_RecipientInfo *ri, int decrypt) in ossl_cms_ecdh_envelope() argument
387 return ecdh_cms_decrypt(ri); in ossl_cms_ecdh_envelope()
390 return ecdh_cms_encrypt(ri); in ossl_cms_ecdh_envelope()