Lines Matching refs:cms
222 int CMS_EncryptedData_set1_key(CMS_ContentInfo *cms, const EVP_CIPHER *ciph, in CMS_EncryptedData_set1_key() argument
232 cms->d.encryptedData = M_ASN1_new_of(CMS_EncryptedData); in CMS_EncryptedData_set1_key()
233 if (!cms->d.encryptedData) { in CMS_EncryptedData_set1_key()
237 cms->contentType = OBJ_nid2obj(NID_pkcs7_encrypted); in CMS_EncryptedData_set1_key()
238 cms->d.encryptedData->version = 0; in CMS_EncryptedData_set1_key()
239 } else if (OBJ_obj2nid(cms->contentType) != NID_pkcs7_encrypted) { in CMS_EncryptedData_set1_key()
243 ec = cms->d.encryptedData->encryptedContentInfo; in CMS_EncryptedData_set1_key()
245 ossl_cms_get0_cmsctx(cms)); in CMS_EncryptedData_set1_key()
248 BIO *ossl_cms_EncryptedData_init_bio(const CMS_ContentInfo *cms) in ossl_cms_EncryptedData_init_bio() argument
250 CMS_EncryptedData *enc = cms->d.encryptedData; in ossl_cms_EncryptedData_init_bio()
254 ossl_cms_get0_cmsctx(cms)); in ossl_cms_EncryptedData_init_bio()