solved a bug removing after removing memcpy inside ctr encryption