Finished base AES functions