bcb4e51a409d94ae670de96afb8483a4f7855294Stephan Bosch/* Copyright (c) 2005-2018 Dovecot authors, see the included COPYING file */
e6055ac974358d31bb2269731dcac57fbe910cc2Timo Sirainenvoid dec2hex(unsigned char *hexstr, uintmax_t dec, unsigned int hexstr_size)
e6055ac974358d31bb2269731dcac57fbe910cc2Timo Sirainen unsigned int i;
e6055ac974358d31bb2269731dcac57fbe910cc2Timo Sirainen for (i = 0; i < hexstr_size; i++) {
e6055ac974358d31bb2269731dcac57fbe910cc2Timo Sirainenuintmax_t hex2dec(const unsigned char *data, unsigned int len)
e6055ac974358d31bb2269731dcac57fbe910cc2Timo Sirainen unsigned int i;
e6055ac974358d31bb2269731dcac57fbe910cc2Timo Sirainen for (i = 0; i < len; i++) {