Lines Matching defs:cms
1 /* crypto/cms/cms_enc.c */
59 #include <openssl/cms.h>
257 int CMS_EncryptedData_set1_key(CMS_ContentInfo *cms, const EVP_CIPHER *ciph,
268 cms->d.encryptedData = M_ASN1_new_of(CMS_EncryptedData);
269 if (!cms->d.encryptedData)
275 cms->contentType = OBJ_nid2obj(NID_pkcs7_encrypted);
276 cms->d.encryptedData->version = 0;
278 else if (OBJ_obj2nid(cms->contentType) != NID_pkcs7_encrypted)
284 ec = cms->d.encryptedData->encryptedContentInfo;
288 BIO *cms_EncryptedData_init_bio(CMS_ContentInfo *cms)
290 CMS_EncryptedData *enc = cms->d.encryptedData;