openssl 0.9.7g encrypt/decrypt not able to interoperate with Java
I am facing a problem while performing encryption and decryption using
0.9.7g. Here I am encrypting data using openssl 0.9.7g and decrypting
using Java, and vice versa. Basically, I find the interoperability with
Java to be broken (see detail of exception below).
The same was working fine with OpenSSL 0.9.6m. Recently I have changed
my Openssl version from 0.9.6m to 0.9.7g. Note that, encrypting with
OpenSSL and decrypting with OpenSSL works fine in both versions.
I am using Blowfish algorithm in CBC Mode with 128bit key (C code) and
decrypting with JRE 1.4.202 (Java code). I get the following error
Caused by: javax.crypto.IllegalBlockSizeException: Input length (with
padding) not multiple of 8 bytes
... 2 more