8 #ifndef BOTAN_HEX_CODEC_H__
9 #define BOTAN_HEX_CODEC_H__
11 #include <botan/secmem.h>
24 const uint8_t input[],
26 bool uppercase =
true);
35 std::string BOTAN_DLL
hex_encode(
const uint8_t input[],
37 bool uppercase =
true);
45 template<
typename Alloc>
46 std::string
hex_encode(
const std::vector<uint8_t, Alloc>& input,
47 bool uppercase =
true)
49 return hex_encode(input.data(), input.size(), uppercase);
68 size_t& input_consumed,
69 bool ignore_ws =
true);
83 bool ignore_ws =
true);
94 const std::string& input,
95 bool ignore_ws =
true);
105 std::vector<uint8_t> BOTAN_DLL
108 bool ignore_ws =
true);
117 std::vector<uint8_t> BOTAN_DLL
119 bool ignore_ws =
true);
130 secure_vector<uint8_t> BOTAN_DLL
133 bool ignore_ws =
true);
142 secure_vector<uint8_t> BOTAN_DLL
144 bool ignore_ws =
true);
secure_vector< uint8_t > hex_decode_locked(const char input[], size_t input_length, bool ignore_ws)
void hex_encode(char output[], const uint8_t input[], size_t input_length, bool uppercase)
size_t hex_decode(uint8_t output[], const char input[], size_t input_length, size_t &input_consumed, bool ignore_ws)