Lines Matching defs:cms
1 /* crypto/cms/cms_enc.c */
60 #include <openssl/cms.h>
230 int CMS_EncryptedData_set1_key(CMS_ContentInfo *cms, const EVP_CIPHER *ciph,
239 cms->d.encryptedData = M_ASN1_new_of(CMS_EncryptedData);
240 if (!cms->d.encryptedData) {
244 cms->contentType = OBJ_nid2obj(NID_pkcs7_encrypted);
245 cms->d.encryptedData->version = 0;
246 } else if (OBJ_obj2nid(cms->contentType) != NID_pkcs7_encrypted) {
250 ec = cms->d.encryptedData->encryptedContentInfo;
254 BIO *cms_EncryptedData_init_bio(CMS_ContentInfo *cms)
256 CMS_EncryptedData *enc = cms->d.encryptedData;