Lines Matching defs:Pkcs7
24 pub struct Pkcs7;
26 /// Reference to `Pkcs7`
53 impl Pkcs7 {
60 Pkcs7,
68 Pkcs7,
77 pub fn from_smime(input: &[u8]) -> Result<(Pkcs7, Option<Vec<u8>>), ErrorStack> {
84 cvt_p(ffi::SMIME_read_PKCS7(input_bio.as_ptr(), &mut bcont_bio)).map(Pkcs7)?;
106 ) -> Result<Pkcs7, ErrorStack> {
116 .map(Pkcs7)
133 ) -> Result<Pkcs7, ErrorStack>
146 .map(Pkcs7)
287 use crate::pkcs7::{Pkcs7, Pkcs7Flags};
307 Pkcs7::encrypt(&certs, message.as_bytes(), cipher, flags).expect("should succeed");
313 let (pkcs7_decoded, _) = Pkcs7::from_smime(encrypted.as_slice()).expect("should succeed");
340 Pkcs7::sign(&cert, &pkey, &certs, message.as_bytes(), flags).expect("should succeed");
347 Pkcs7::from_smime(signed.as_slice()).expect("should succeed");
384 Pkcs7::sign(&cert, &pkey, &certs, message.as_bytes(), flags).expect("should succeed");
391 Pkcs7::from_smime(signed.as_slice()).expect("should succeed");
421 Pkcs7::sign(&cert, &pkey, &certs, message.as_bytes(), flags).expect("should succeed");
427 let (pkcs7_decoded, _) = Pkcs7::from_smime(signed.as_slice()).expect("should succeed");
442 let result = Pkcs7::from_smime(input.as_bytes());