implemented some of the aes methods