generate and set AES and SHA keys