An AES implementation of a CTR block cipher using a CBC-MAC along with an ECB implementation for comparison