Openssl aes initialization moved to correct functions. Output different from test program.