I am trying to do aes encryption/decryption in native code C. Encryption does work but when I try to decrypt the string. It doesn\'t end up as original string. Here is the JNI m
You are using the low level encryption modes of OpenSSL. Your troubles are likely to vanish if you use the higher level EVP_* methods, e.g. for AES/CBC mode encryption. See also this related question.