Lines Matching refs:ri
685 CMS_RecipientInfo *ri, in cms_kari_set1_pkey_and_peer() argument
692 reks = CMS_RecipientInfo_kari_get0_reks(ri); in cms_kari_set1_pkey_and_peer()
699 CMS_RecipientInfo_kari_set0_pkey_and_peer(ri, pk, peer); in cms_kari_set1_pkey_and_peer()
700 rv = CMS_RecipientInfo_kari_decrypt(cms, ri, rek); in cms_kari_set1_pkey_and_peer()
701 CMS_RecipientInfo_kari_set0_pkey(ri, NULL); in cms_kari_set1_pkey_and_peer()
718 CMS_RecipientInfo *ri; in CMS_decrypt_set1_pkey_and_peer() local
742 ri = sk_CMS_RecipientInfo_value(ris, i); in CMS_decrypt_set1_pkey_and_peer()
743 ri_type = CMS_RecipientInfo_type(ri); in CMS_decrypt_set1_pkey_and_peer()
748 r = cms_kari_set1_pkey_and_peer(cms, ri, pk, cert, peer); in CMS_decrypt_set1_pkey_and_peer()
755 else if (cert == NULL || !CMS_RecipientInfo_ktri_cert_cmp(ri, cert)) { in CMS_decrypt_set1_pkey_and_peer()
757 CMS_RecipientInfo_set0_pkey(ri, pk); in CMS_decrypt_set1_pkey_and_peer()
758 r = CMS_RecipientInfo_decrypt(cms, ri); in CMS_decrypt_set1_pkey_and_peer()
759 CMS_RecipientInfo_set0_pkey(ri, NULL); in CMS_decrypt_set1_pkey_and_peer()
803 CMS_RecipientInfo *ri; in CMS_decrypt_set1_key() local
808 ri = sk_CMS_RecipientInfo_value(ris, i); in CMS_decrypt_set1_key()
809 if (CMS_RecipientInfo_type(ri) != CMS_RECIPINFO_KEK) in CMS_decrypt_set1_key()
814 || (CMS_RecipientInfo_kekri_id_cmp(ri, id, idlen) == 0)) { in CMS_decrypt_set1_key()
816 CMS_RecipientInfo_set0_key(ri, key, keylen); in CMS_decrypt_set1_key()
817 r = CMS_RecipientInfo_decrypt(cms, ri); in CMS_decrypt_set1_key()
818 CMS_RecipientInfo_set0_key(ri, NULL, 0); in CMS_decrypt_set1_key()
839 CMS_RecipientInfo *ri; in CMS_decrypt_set1_password() local
851 ri = sk_CMS_RecipientInfo_value(ris, i); in CMS_decrypt_set1_password()
852 if (CMS_RecipientInfo_type(ri) != CMS_RECIPINFO_PASS) in CMS_decrypt_set1_password()
857 CMS_RecipientInfo_set0_password(ri, pass, passlen); in CMS_decrypt_set1_password()
858 r = CMS_RecipientInfo_decrypt(cms, ri); in CMS_decrypt_set1_password()
859 CMS_RecipientInfo_set0_password(ri, NULL, 0); in CMS_decrypt_set1_password()