Sortix nightly manual
This manual documents Sortix nightly, a development build that has not been officially released. You can instead view this document in the latest official manual.
NAME
CMS_get0_RecipientInfos, CMS_RecipientInfo_type, CMS_RecipientInfo_ktri_get0_signer_id, CMS_RecipientInfo_ktri_cert_cmp, CMS_RecipientInfo_set0_pkey, CMS_RecipientInfo_kekri_get0_id, CMS_RecipientInfo_kekri_id_cmp, CMS_RecipientInfo_set0_key, CMS_RecipientInfo_decrypt, CMS_RecipientInfo_encrypt — CMS EnvelopedData RecipientInfo routinesSYNOPSIS
#include <openssl/cms.h>CMS_get0_RecipientInfos(CMS_ContentInfo *cms);
CMS_RecipientInfo_type(CMS_RecipientInfo *ri);
CMS_RecipientInfo_ktri_get0_signer_id(CMS_RecipientInfo *ri, ASN1_OCTET_STRING **keyid, X509_NAME **issuer, ASN1_INTEGER **sno);
CMS_RecipientInfo_ktri_cert_cmp(CMS_RecipientInfo *ri, X509 *certificate);
CMS_RecipientInfo_set0_pkey(CMS_RecipientInfo *ri, EVP_PKEY *pkey);
CMS_RecipientInfo_kekri_get0_id(CMS_RecipientInfo *ri, X509_ALGOR **palg, ASN1_OCTET_STRING **pid, ASN1_GENERALIZEDTIME **pdate, ASN1_OBJECT **potherid, ASN1_TYPE **pothertype);
CMS_RecipientInfo_kekri_id_cmp(CMS_RecipientInfo *ri, const unsigned char *id, size_t idlen);
CMS_RecipientInfo_set0_key(CMS_RecipientInfo *ri, unsigned char *key, size_t keylen);
CMS_RecipientInfo_decrypt(CMS_ContentInfo *cms, CMS_RecipientInfo *ri);
CMS_RecipientInfo_encrypt(CMS_ContentInfo *cms, CMS_RecipientInfo *ri);
DESCRIPTION
CMS_get0_RecipientInfos() returns all the RecipientInfo structures associated with the EnvelopedData structure cms.CMS_RECIPINFO_TRANS | for | KeyTransRecipientInfo, |
CMS_RECIPINFO_AGREE | for | KeyAgreeRecipientInfo, |
CMS_RECIPINFO_KEK | for | KEKRecipientInfo, |
CMS_RECIPINFO_PASS | for |
PasswordRecipientinfo, or |
CMS_RECIPINFO_OTHER | for | OtherRecipientInfo. |
keyEncryptionAlgorithm | to | *palg, |
keyIdentifier | to | *pid, |
date | to | *pdate (optional), |
other.keyAttrId | to | *potherid (optional), |
other.keyAttr | to | *pothertype (optional). |
RETURN VALUES
CMS_get0_RecipientInfos() returns an internal pointer to all the CMS_RecipientInfo structures, or NULL if an error occurs.STANDARDS
RFC 5652 Cryptographic Message Syntax (CMS):- section 6.1: EnvelopedData Type
- section 6.2: RecipientInfo Type
- section 6.2.1: KeyTransRecipientInfo Type
- section 6.2.3: KEKRecipientInfo Type