Lines Matching refs:cert
186 /// `pkey` is the recipient's private key, and `cert` is the recipient's
194 cert: &X509Ref,
206 cert.as_ptr(),
275 for cert in &stack {
276 mem::forget(cert.to_owned());
296 let cert = include_bytes!("../test/certs.pem");
297 let cert = X509::from_pem(cert).unwrap();
299 certs.push(cert.clone()).unwrap();
316 .decrypt(&pkey, &cert, Pkcs7Flags::empty())
324 let cert = include_bytes!("../test/cert.pem");
325 let cert = X509::from_pem(cert).unwrap();
340 Pkcs7::sign(&cert, &pkey, &certs, message.as_bytes(), flags).expect("should succeed");
368 let cert = include_bytes!("../test/cert.pem");
369 let cert = X509::from_pem(cert).unwrap();
384 Pkcs7::sign(&cert, &pkey, &certs, message.as_bytes(), flags).expect("should succeed");
406 let cert = include_bytes!("../test/cert.pem");
407 let cert = X509::from_pem(cert).unwrap();
408 let cert_digest = cert.digest(MessageDigest::sha256()).unwrap();
421 Pkcs7::sign(&cert, &pkey, &certs, message.as_bytes(), flags).expect("should succeed");