Lines Matching refs:from
5 //! generated from a `Vec` of bytes. This `Vec` follows the smime protocol standards.
307 let input = String::from("My Message");
323 let encrypted_der = encrypt.to_der().expect("failed to create der from cms");
325 CmsContentInfo::from_der(&encrypted_der).expect("failed read cms from der");
334 .expect("failed to create string from cms content");
340 .expect("failed to create string from cms content");
348 let encrypted_pem = encrypt.to_pem().expect("failed to create pem from cms");
350 CmsContentInfo::from_pem(&encrypted_pem).expect("failed read cms from pem");
359 .expect("failed to create string from cms content");
365 .expect("failed to create string from cms content");