8 #ifndef BOTAN_HEX_FILTER_H__
9 #define BOTAN_HEX_FILTER_H__
11 #include <botan/filter.h>
27 std::string
name()
const override {
return "Hex_Encoder"; }
29 void write(
const uint8_t in[],
size_t length)
override;
30 void end_msg()
override;
45 size_t line_length = 72,
46 Case the_case = Uppercase);
48 void encode_and_send(
const uint8_t[],
size_t);
51 const size_t m_line_length;
52 std::vector<uint8_t> m_in, m_out;
53 size_t m_position, m_counter;
62 std::string
name()
const override {
return "Hex_Decoder"; }
64 void write(
const uint8_t[],
size_t)
override;
65 void end_msg()
override;
75 std::vector<uint8_t> m_in, m_out;
std::string name() const override
std::string name() const override