A class that implements CBC and CTR encryption/decryption.