Implementation of AES encryption and decryption