I get always the same output for debug / and the "different" same each time for the release, if I use the same key and the same input data. I'm using the following EVP_* functions: EncryptInit(), EncryptUpdate(), EncryptFinal(). Using the 3DES cbc algorithm, but I tried the blowfish too, with the same results. I assume I use the functions correctly, because they work in debug mode. I don't know what an "IV" is.
On Wed, Apr 15, 2009 at 7:57 PM, Victor Duchovni <victor.ducho...@morganstanley.com> wrote: > On Wed, Apr 15, 2009 at 11:46:56AM +0300, Atti wrote: > >> I built the new OpenSSL (1.0.0) and tried to run the blowfish >> encryption example from the OpenSSL docs >> (http://openssl.org/docs/crypto/EVP_EncryptInit.html#EXAMPLES) but >> this time I used the same library to compile the application, because >> this build only made this one. I made one debug and one release build >> with VS2008, and they both generated different cyphertexts with the >> same key and input data. I also used the same .DLL, becase there is >> only one, and as I read from the FAQ, that should be okay. What am I >> doing wrong? > > If you run a single build (either the debug or the release version) > twice to encrypt the same data with the same key, do you get the same > ciphertext each time? What encryption "mode" are you using and how do you > generate the "IV" if an IV is required? > > -- > Viktor. > ______________________________________________________________________ > OpenSSL Project http://www.openssl.org > User Support Mailing List openssl-us...@openssl.org > Automated List Manager majord...@openssl.org > ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org