void scramble(uint8_t *in, uint8_t *out, const int size);