CBC and CTR cipher