make a CTR-mode encryption scheme