added functions to get/set AES IVs