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);
37 bool uppercase = true);
45 template<typename Alloc>
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);
93 size_t BOTAN_PUBLIC_API(2,0)
hex_decode(uint8_t output[],
94 const
std::
string& input,
95 bool ignore_ws = true);
105 std::vector<uint8_t> BOTAN_PUBLIC_API(2,0)
108 bool ignore_ws = true);
117 std::vector<uint8_t> BOTAN_PUBLIC_API(2,0)
119 bool ignore_ws = true);
133 bool ignore_ws = true);
144 bool ignore_ws = true);
void hex_encode(char output[], const uint8_t input[], size_t input_length, bool uppercase)
secure_vector< uint8_t > hex_decode_locked(const char input[], size_t input_length, bool ignore_ws)
#define BOTAN_PUBLIC_API(maj, min)
std::vector< T, secure_allocator< T >> secure_vector
size_t hex_decode(uint8_t output[], const char input[], size_t input_length, size_t &input_consumed, bool ignore_ws)