moving aes ctx to userhandling.c for better usability