to_byte
void to_byte(unsigned char *output, unsigned long long in, uint32_t bytes);
to_byte(hash_key+2*n, idx, n);
to_byte(idx_bytes_32, idx, 32);
to_byte(hash_key+2*n, idx, n);
to_byte(hash_key+2*n, idx, n);
to_byte(idx_bytes_32, idx, 32);
to_byte(hash_key+2*n, idx, n);
to_byte(bytes+i*4, addr[i],4);
to_byte(buf, type, n);
to_byte(csum_bytes, csum, len_2_bytes);
to_byte(csum_bytes, csum, len_2_bytes);
to_byte(ctr, i, 32);