cms = CMS_ContentInfo_new();if(!cms)returnNULL;if(!CMS_EncryptedData_set1_key(cms, cipher, key, keylen))returnNULL;if(!(flags & CMS_DETACHED)) CMS_set_detached(cms,0);if((flags & (CMS_STREAM|CMS_PARTIAL)) || CMS_final(cms, in,NULL, flags))returncms;CMS_ContentInfo_free(cms);...