Implemented CBC/CTR using ECB.