8 #ifndef BOTAN_CMS_ENCODER_H__ 9 #define BOTAN_CMS_ENCODER_H__ 11 #include <botan/x509cert.h> 12 #include <botan/x509stor.h> 13 #include <botan/pkcs8.h> 14 #include <botan/symkey.h> 29 const std::string&,
const std::string& =
"");
35 void authenticate(
const std::string&,
const std::string& =
"");
36 void authenticate(
const SymmetricKey&,
const std::string& =
"");
41 const std::vector<X509_Certificate>& cert_chain,
42 const std::string& hash,
43 const std::string& padding);
45 void digest(
const std::string& =
"");
47 void compress(
const std::string&);
48 static bool can_compress_with(
const std::string&);
51 std::string PEM_contents();
53 void set_data(
const std::string&);
54 void set_data(
const byte[],
size_t);
CMS_Encoder(const std::string &str)
CMS_Encoder(const byte buf[], size_t length)