Implementation of AES in pure lua