Implemeted AES crypto functions