27#ifndef __NILOREA_HEX_HEADER
28#define __NILOREA_HEX_HEADER
47unsigned char*
n_hex_decode(
const char* hex,
size_t* out_len);
50size_t n_hex_encode_to(
char* out,
size_t out_size,
const unsigned char* data,
size_t len);
53int n_hex_decode_to(
unsigned char* out,
size_t out_size,
const char* hex,
size_t nbytes);
unsigned char * n_hex_decode(const char *hex, size_t *out_len)
decode a hex string (ASCII whitespace between digits is ignored) into a freshly allocated,...
size_t n_hex_encode_to(char *out, size_t out_size, const unsigned char *data, size_t len)
encode len bytes of data as lowercase hex into the caller-provided buffer out (needs out_size >= 2*le...
int n_hex_decode_to(unsigned char *out, size_t out_size, const char *hex, size_t nbytes)
decode exactly nbytes bytes from the first 2*nbytes hex digits of hex (case-insensitive,...
N_STR * n_hex_encode(const unsigned char *data, size_t len)
encode len bytes of data as a lowercase hex N_STR (2*len characters); free with free_nstr.
A box including a string and his lenght.
N_STR and string function declaration.