implementing aes for speed 8135571