ECB and CTR modes implemented