Lines Matching refs:as_bytes
307 Pkcs7::encrypt(&certs, message.as_bytes(), cipher, flags).expect("should succeed");
310 .to_smime(message.as_bytes(), flags)
340 Pkcs7::sign(&cert, &pkey, &certs, message.as_bytes(), flags).expect("should succeed");
343 .to_smime(message.as_bytes(), flags)
354 Some(message.as_bytes()),
360 assert_eq!(output, message.as_bytes());
361 assert_eq!(content.expect("should be non-empty"), message.as_bytes());
384 Pkcs7::sign(&cert, &pkey, &certs, message.as_bytes(), flags).expect("should succeed");
387 .to_smime(message.as_bytes(), flags)
398 assert_eq!(output, message.as_bytes());
421 Pkcs7::sign(&cert, &pkey, &certs, message.as_bytes(), flags).expect("should succeed");
424 .to_smime(message.as_bytes(), flags)
442 let result = Pkcs7::from_smime(input.as_bytes());