two phase init of aes encoder/decoder