8 #ifndef BOTAN_BASE64_FILTER_H_ 9 #define BOTAN_BASE64_FILTER_H_ 11 #include <botan/filter.h> 21 std::string
name()
const override {
return "Base64_Encoder"; }
28 void write(
const uint8_t input[],
size_t length)
override;
33 void end_msg()
override;
44 void encode_and_send(
const uint8_t input[],
size_t length,
45 bool final_inputs =
false);
46 void do_output(
const uint8_t output[],
size_t length);
48 const size_t m_line_length;
49 const bool m_trailing_newline;
50 std::vector<uint8_t> m_in, m_out;
51 size_t m_position, m_out_position;
60 std::string
name()
const override {
return "Base64_Decoder"; }
67 void write(
const uint8_t input[],
size_t length)
override;
72 void end_msg()
override;
82 std::vector<uint8_t> m_in, m_out;
#define BOTAN_PUBLIC_API(maj, min)
std::string name() const override
std::string name() const override