8#ifndef BOTAN_HEX_CODEC_H_
9#define BOTAN_HEX_CODEC_H_
11#include <botan/secmem.h>
26 hex_encode(
char output[], const uint8_t input[],
size_t input_length,
bool uppercase = true);
43inline std::
string hex_encode(std::span<const uint8_t> input,
bool uppercase = true) {
44 return hex_encode(input.data(), input.size(), uppercase);
61 hex_decode(uint8_t output[], const
char input[],
size_t input_length,
size_t& input_consumed,
bool ignore_ws = true);
73 hex_decode(uint8_t output[], const
char input[],
size_t input_length,
bool ignore_ws = true);
123 hex_decode_locked(const
char input[],
size_t input_length,
bool ignore_ws = true);
#define BOTAN_PUBLIC_API(maj, min)
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)
std::vector< T, secure_allocator< T > > secure_vector