sodium_bin2hex

* Hexadecimal encoding. * The sodium_bin2hex() function converts bin_len bytes stored at bin into a hexadecimal * string. * The string is stored into hex and includes a nul byte ( \0 ) terminator. * hex_maxlen is the maximum number of bytes that the function is allowed to write starting at * hex . It should be at least bin_len * 2 + 1 . * The function returns hex on success, or null on overflow. It evaluates in constant time for * a given size.

extern (C)
char*
sodium_bin2hex
(
const(char*) hex
,
const size_t hex_maxlen
,
const(ubyte*) bin
,
const size_t bin_len
)

Meta