to_byte
# define to_byte(x) ((uint8_t)(x))
# define to_byte(x) ((x) & 0xff)
void to_byte(unsigned char *out, unsigned long long in, uint32_t bytes)