Lines Matching defs:cms
15 #include <openssl/cms.h>
225 int CMS_EncryptedData_set1_key(CMS_ContentInfo *cms, const EVP_CIPHER *ciph,
235 cms->d.encryptedData = M_ASN1_new_of(CMS_EncryptedData);
236 if (!cms->d.encryptedData) {
240 cms->contentType = OBJ_nid2obj(NID_pkcs7_encrypted);
241 cms->d.encryptedData->version = 0;
242 } else if (OBJ_obj2nid(cms->contentType) != NID_pkcs7_encrypted) {
246 ec = cms->d.encryptedData->encryptedContentInfo;
248 ossl_cms_get0_cmsctx(cms));
251 BIO *ossl_cms_EncryptedData_init_bio(const CMS_ContentInfo *cms)
253 CMS_EncryptedData *enc = cms->d.encryptedData;
257 ossl_cms_get0_cmsctx(cms));