82 return cms->d.envelopedData;
112 return env->recipientInfos;
124 cms = CMS_ContentInfo_new();
127 env = cms_enveloped_data_init(cms);
136 CMS_ContentInfo_free(cms);
252 *recip = ktri->
recip;
306 unsigned char *ek = NULL;
370 unsigned char *ek = NULL;
376 if (ktri->
pkey == NULL)
442 const unsigned char *
id,
size_t idlen)
454 tmp_os.
data = (
unsigned char *)
id;
455 tmp_os.
length = (int)idlen;
461 static size_t aes_wrap_keylen(
int nid)
480 unsigned char *
key,
size_t keylen,
481 unsigned char *
id,
size_t idlen,
519 size_t exp_keylen = aes_wrap_keylen(nid);
528 if (keylen != exp_keylen)
629 unsigned char *
key,
size_t keylen)
653 unsigned char *wkey = NULL;
713 unsigned char *ukey = NULL;
728 if (aes_wrap_keylen(wrap_nid) != kekri->
keylen)
791 return cms_RecipientInfo_ktri_decrypt(cms, ri);
794 return cms_RecipientInfo_kekri_decrypt(cms, ri);
835 r = cms_RecipientInfo_ktri_encrypt(cms, ri);
839 r = cms_RecipientInfo_kekri_encrypt(cms, ri);