Lines Matching refs:data
3 //! CMS (PKCS#7) is an encryption standard. It allows signing and encrypting data using
6 //! Data accepted by this module will be smime type `enveloped-data`.
57 /// CMS supports nesting various types of data, including signatures, certificates,
58 /// encrypted data, smime messages (encrypted email), and data digest. The ContentInfo
72 /// decrypt the data in `self`.
97 /// decrypt the data in `self` without validating the recipient certificate.
168 /// data `data` and flags `flags`, create a CmsContentInfo struct.
176 data: Option<&[u8]>,
185 let data_bio = match data {
186 Some(data) => Some(MemBioSlice::new(data)?),
204 /// Given a certificate stack `certs`, data `data`, cipher `cipher` and flags `flags`,
213 data: &[u8],
218 let data_bio = MemBioSlice::new(data)?;
251 Some(data) => Some(MemBioSlice::new(data)?),
268 if let Some(data) = output_data {
269 data.clear();
270 data.extend_from_slice(out_bio.get_buf());
384 let data = b"Hello world!";
387 (CMSOptions::DETACHED | CMSOptions::BINARY, Some(data))
392 let mut cms = CmsContentInfo::sign(Some(&cert), Some(&key), None, Some(data), opt)
418 assert_eq!(data.to_vec(), out_data);
444 let data = b"Hello world!";
449 Some(data),
468 Some(data),