You have to reinitialize the IV before decryption. Thanks, James
-----Original Message----- From: mohanlal jangir [mailto:[EMAIL PROTECTED] Sent: Friday, December 19, 2003 6:45 AM To: [EMAIL PROTECTED] Subject: AES_CBC decryption Hi, I was looking into the AES CBC code available at http://openbsd.secsup.org/src/lib/libssl/src/crypto/aes/ For testing this, I wrote small code (attached in mail). The Encryption seems OK but Decryption is failing. I think, I am doing some mistake. Could you please look into the code and give me some hints about decryption. Regards Mohanlal ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]