Lines Matching refs:rid

119     CMS_KeyAgreeRecipientIdentifier *rid = rek->rid;  in CMS_RecipientEncryptedKey_get0_id()  local
121 if (rid->type == CMS_REK_ISSUER_SERIAL) { in CMS_RecipientEncryptedKey_get0_id()
123 *issuer = rid->d.issuerAndSerialNumber->issuer; in CMS_RecipientEncryptedKey_get0_id()
125 *sno = rid->d.issuerAndSerialNumber->serialNumber; in CMS_RecipientEncryptedKey_get0_id()
132 } else if (rid->type == CMS_REK_KEYIDENTIFIER) { in CMS_RecipientEncryptedKey_get0_id()
134 *keyid = rid->d.rKeyId->subjectKeyIdentifier; in CMS_RecipientEncryptedKey_get0_id()
136 *tm = rid->d.rKeyId->date; in CMS_RecipientEncryptedKey_get0_id()
138 *other = rid->d.rKeyId->other; in CMS_RecipientEncryptedKey_get0_id()
151 CMS_KeyAgreeRecipientIdentifier *rid = rek->rid; in CMS_RecipientEncryptedKey_cert_cmp() local
153 if (rid->type == CMS_REK_ISSUER_SERIAL) in CMS_RecipientEncryptedKey_cert_cmp()
154 return ossl_cms_ias_cert_cmp(rid->d.issuerAndSerialNumber, cert); in CMS_RecipientEncryptedKey_cert_cmp()
155 else if (rid->type == CMS_REK_KEYIDENTIFIER) in CMS_RecipientEncryptedKey_cert_cmp()
156 return ossl_cms_keyid_cert_cmp(rid->d.rKeyId->subjectKeyIdentifier, in CMS_RecipientEncryptedKey_cert_cmp()
368 rek->rid->type = CMS_REK_KEYIDENTIFIER; in ossl_cms_RecipientInfo_kari_init()
369 rek->rid->d.rKeyId = M_ASN1_new_of(CMS_RecipientKeyIdentifier); in ossl_cms_RecipientInfo_kari_init()
370 if (rek->rid->d.rKeyId == NULL) in ossl_cms_RecipientInfo_kari_init()
372 if (!ossl_cms_set1_keyid(&rek->rid->d.rKeyId->subjectKeyIdentifier, recip)) in ossl_cms_RecipientInfo_kari_init()
375 rek->rid->type = CMS_REK_ISSUER_SERIAL; in ossl_cms_RecipientInfo_kari_init()
376 if (!ossl_cms_set1_ias(&rek->rid->d.issuerAndSerialNumber, recip)) in ossl_cms_RecipientInfo_kari_init()